Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2009
    Location
    Norway, Europe
    Posts
    94
    Thanks
    12
    Thanked 2 Times in 2 Posts

    When you compile 'background' or 'font' and skip something...

    How can you be sure the browser doesn't misunderstand it?

    Like, for example:

    Code:
    p {
    font: oblique 2.5em "Times New Roman", Arial
    }
    I don't see how a browser can easily understand that. Isn't it better with:

    Code:
    p {
    font: oblique normal normal 2.5em "Times New Roman", Arial
    }
    and the font-family part looks confusing

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    CSS shorthand guide.

    By chosing to not declare a value on a shorthand property, you are explicitly declaring the default settings.
    The challenge is to know what the defaults are. Some browser defaults are different than others, hence the whole idea of a CSS reset that will "level the playing field" before you start assigning CSS properties.
    matt | design | blog


  •  

    Posting Permissions

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