|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Converting Font sizes in HTML/XHTML
I need to replace
<font...size="x".....> tags with eg <div style="... ;font-size:y;...> unfortunately <font ...size="4" ...> is not equivalent to <div style="...;font-size:4;...> what do I need to do to convert x to y ? (for any font face and any font size) |
|
#2
|
|||
|
|||
|
To get the corresponding values you must use CSS's absolute-size keywords xx-small, x-small, small, medium, large, x-large, and xx-large.
So <font size="4"> would become <div style="font-size: medium;"> |
|
#3
|
|||
|
|||
|
Thanks, thats exactly what I needed to know :-)
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Converting Font sizes in HTML/XHTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|