As I said, the code above is a simple demonstration. Here's some more code that works exactly the same way:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body style="font-size:70%">
<div style="font-size:1.5em;margin-top:1.5em">CONTENT</div>
<div style="position:absolute;top:0;margin-top:1.1em;width:100%">
<div style="border-width:1px;border-color:#000000;border-style:solid"> </div>
</div>
</body>
</html>
However, I just discovered that Firefox 3 only behaves this way if a minimum font size is set in it's Preferences. Please set your Firefox minimum font size to 13 for the example above. Firefox 2 did not have this problem.
Would a good solution be to remove the body font-size declaration and change each of my font sizes to 70% of what they are set to now?
Bookmarks