![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ok, I have a page, where the DOM is being updated by JavaScript. [...] font face="Verdana" size="1" color="#ff0000" [...] Now so far the CSS entries are being created: AddCSSRule('.third-div','...'); AddCSSRule('.third-1','... font-size: 1; ...'); |
|
now somehow the font size, when used with <p> seems to make the text on FF illegible small, whereas on IE6 the text seems to have a normal size. Can anybody tell me why FF reacts that way? I mean, it worked with the <font> tag just like IE6, but with the <p> it just doesn't. What can I change to get the same result as I had before? but without having the <font> tag reinstated ;-) |
#3
| |||
| |||
|
|
Robi wrote: ok, I have a page, where the DOM is being updated by JavaScript. [...] font face="Verdana" size="1" color="#ff0000" [...] Now so far the CSS entries are being created: AddCSSRule('.third-div','...'); AddCSSRule('.third-1','... font-size: 1; ...'); And here is the problem -------^^^^^^^^^^^^ You can't simply move old font size attribute values to CSS font-size properties - they are very different things. |
|
What can I change to get the same result as I had before? but without having the <font> tag reinstated ;-) When specifying a font-size you have the options listed here: URL:http://www.w3.org/TR/REC-CSS2/fonts....ont-size-props The short answer is that if you use a value like '1' you must also use a unit (px, em, ex, pt, etc.). ok, hmmmm... well, W3C is somehow 'obscure' about what to use... |
|
Whatever Firefox is interpreting your units as they are small (so obviously not em or ex, but maybe pt or px). The solution is to add a unit, px is not liked because IE will not scale it, so try em or ex (or whatever suits). |

#4
| |||
| |||
|
Thanks! em did the trick in FF ![]() |
|
oops, spoke too soon... that is, until I realized that em is a 'relative' size whereas I need it 'fixed' or 'absolute'... whenever I increase the text size of the page, my little widget increases its text size and blows it out of proportion. |
|
Is there an attribute "no-resize"? |
![]() |
| Thread Tools | |
| Display Modes | |
| |