'web design' Category

  • Property Guideline CSS shorthand

    September 17, 2009

    There is in fact no official guideline for each CSS shorthand property value,  this Property Guideline CSS shorthand  may help you during design work that we have organized collectively.
    Background
    background-color:#fff;
    background-image:url(background.gif);
    background-repeat:no-repeat;
    background-position:top left;
    Woh… it’s too long, take a look at this.
    background:#fff url(background.gif) no-repeat top left;
    Font
    font-size:1em;
    line-height:2em;
    font-weight:bold;
    font-style:italic;
    font-family:arial;
    Shorthand:
    font:1em/2em bold italic serif;
    Margin & padding
    There are different shorthand properties for margin & padding.
    Four [...]