SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: em question

  1. #1
    SitePoint Zealot kimberlybarryd's Avatar
    Join Date
    Jan 2007
    Location
    Nova Scotia, Canada
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    em question

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

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,015
    Mentioned
    53 Post(s)
    Tagged
    2 Thread(s)
    they all are correct, except for the last one (there is no "ems" only "em")
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Zealot kimberlybarryd's Avatar
    Join Date
    Jan 2007
    Location
    Nova Scotia, Canada
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm ,Dreamweaver puts in ems, That's why I asked. Thanks

  4. #4
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •