So what is correct. ems or em
sizes 0.9em or .9em or 1.0em or 1ems
Thanks
| SitePoint Sponsor |

So what is correct. ems or em
sizes 0.9em or .9em or 1.0em or 1ems
Thanks


they all are correct, except for the last one (there is no "ems" only "em")

Hmmm ,Dreamweaver puts in ems, That's why I asked. Thanks
Dreamweaver may be a little confusing as when you apply a style through the wysiwyg it asks you what size you want to display your text in and then whether to display that in pixels, points, ems etc.
However, when the CSS is generated I think you'll find that it creates it correctly and will be displayed as px, pt or em (not pxs, pts or ems).
I presume this is where the confusion is coming from? ems is not valid and won't work so if you're ever in doubt run your CSS file through http://jigsaw.w3.org/css-validator/ and it will tell you whether your CSS file is valid.
Bookmarks