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
Thank you Blaise. I made this computation file: ______________________ <html> <head> <title></title> <style type="text/css"> /*---------Main Body--------*/ body { margin: 0px; padding: 0px; font-size: 100%; } /* ------Boxes----------*/ .Pxbox { width: 16px; height: 16px; border: #000000 1px solid; } .Embox { width: 1em; height: 1em; border: #000000 1px solid; } </style> </head> <body> <div class="Pxbox">M</div> <div class="Embox">M</div> </body> </html> ___________________________________ 1) Replace the "M" in <div class..Pxbox> with any image ( <img src="ur.gif">) 2) Write the PX size dimensions of the "img" in .Pxbox{width: ; height: ;} 3) Multiply the PX dimensions by 16..put those numbers in the .Embox {width: ; height: ; } This has worked for every image I have tried..100% accuracy. However: 1) The font em is set to font family: ; font-size: ; 2) The Elements are set to the default font.... Experiment with adding different font-family and font-size to the body selector and to .Embox. The ration is 1em=16 if the font-size is 100%, 1em, or not set. I think this works.. Anyone want to play with it and tell me if I am wrong? I have been wrong before :)
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »