SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    It's been a while and things have changed

    I'm messing around with some page design and am running into some things I'd like explained.

    First, why a space then a slash when closing a BR tag (<br />)?

    Second, what exactly does "em" stand for when specifying font size, etc.?

    And lastly, the last time I chose a color for some widget it took six hex digits to define the color. Now, for some, I see three...what's up with that?

    TIA

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,294
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    The space slash is for xhtml standards and signifies that the tag is a self closing tag and there is no matching closing tag.

    em is a font sizing standard. I believe what it actually means is the height of the letter m in your browser and all other font sizing is scaled to that. Here is another active discussion on that: http://www.sitepointforums.com/showt...hreadid=135676

    As for the color, the three digits of shorthand is for when there are doubled values (ie #000000 become #000 #0000CC becomes #00C, #FFFFFF becomes #FFF, etc)

    Hope that helps.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  3. #3
    SitePoint Member
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply. I sort of thought the three digit color definition was short hand for double digits for each R, G, and B. The self closing tag makes sense. I'll read through the thread you linked for further understanding of em. I've also noticed em used for div width or padding...so it seems to have many uses.

    Again, thanks for your response.


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
  •