OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
EM and EM
This page's ID:
25342
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote]I noticed a problem with fixed width bordered divs in Firebird and Nav... If you type in the div, and put your browser rez to 800..then keep increasing the text size under View... The text increases outside the box..really messy..[/quote] First of all, I would not call this a "problem". If you set the size of a box in absolute units, it will stay that size. If the text increases, it will have no effect on the size of the box, because a pixel is always a pixel. This also has nothing at all to do with what screen resolution you have or how big your browser window is. As a couple of us said above, if you use em to set the size of an object, it will change in size as you increase/decrease the text size because the em is set to the size of the letter m - if the letter m is bigger, so will everything set to be that size. [quote]By changing the absolute dimensions of the div using 1em=10px..[/quote] This makes no sense on any level at all. An em cannot be globally measured, as it depends on a great many things (the font being used, the default browser settings, and any custom user settings for the browser, for starters). [quote]Now I used 10 px to resize that box but does 1em=13.75?[/quote] No. An em is not any particular number of pixels. I'm certain there are circumstances where that could be the case. I beleive that IE uses 16px as a default base for 1em. But that doesn't mean anything. An em is an em....and it's all relative and not directly covnertable. [quote]and it still resized all my text..because IE uses em to resize..[/quote] Can't even begin to understand this statement... :confused: I don't know where IE is at with this, but Mozilla, Firefox, and Opera will all allow a user to resize text no matter what u/m is used. [quote]I use percent for all text size..with no size set in the "body" command. The CSS text or web page default must be in em..[/quote] Again I'm at a bit of a loss... for one - there is no "body command" . Are you talking about the HTML body tag, or the CSS body selector? You should be specifying a default size in your CSS for the body selector. Again, each browser has it's own default settings for how it displays a web page. Most allow users to customize these defaults. So you cannot leave things unspecified in hope that the default will display it properly. [quote]nd why..if the font is default size (none specified) and percent..IE ..Mozilla, Nav all resize the font...the default must be in em..[/quote] Again - each browser defines it's own default - there is not some "internet default" that controls how browsers display. Each browser has its own default, and most allow the user to alter the defaults. Also, Most browsers will allow the user to change text size no matter what u/m is used. IE, as far as I know, does not - but that may have changed with some of the patches/service packs, etc. You also need to understand that you are asking repeatedly for "the code" to do something. Most of these things can be accomplished many ways, and there is not simpyl some specific code to automatically do what you want here... What you need to do is learn how properly code (X)HTML and CSS, and figure out what the best way to achieve your specific goal is. It's not as black and white as you seem to wish it was...
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »