- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 12:08 AM
Hello Team,
I have an email script which contains the font size mentioned as below. But I don't see any difference in the font size of the text in the email notification with these values. Please help me on how to increase or decrease the existing font size of the text in this case.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 02:01 AM
Yes, you can Increase/Decrease font size using %, Please find the difference between px and %
px is a “fixed” unit of measure - its unit size is based on the actual number of pixels on the device screen and will always occupy that many pixels regardless of its parent tag’s size.
% is known as “relative” units - they auto-resize according to their “parent tag’s” unit size.
If my response is helpful, Mark it as Correct and close the loop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 12:15 AM
You have to use style to append css in script
For example
<p style="color:red;font-size:40px;">paragraph</p>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 12:33 AM
Hi
Thank you !!
could you also please help me on, why do we the use "font-size:100%" in email scripts.And can we increase or decrease the font size using "font-size:100%" ?
template.print(current.number + ' has been reopened with the following customer comment: </strong> </span><span><pre style=\'display:inline; font-size:100%\'>' + finalComm);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 02:01 AM
Yes, you can Increase/Decrease font size using %, Please find the difference between px and %
px is a “fixed” unit of measure - its unit size is based on the actual number of pixels on the device screen and will always occupy that many pixels regardless of its parent tag’s size.
% is known as “relative” units - they auto-resize according to their “parent tag’s” unit size.
If my response is helpful, Mark it as Correct and close the loop.