Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
Welcome to AspAdvice Sign in | Join | Help

Re: CSS Primer

  •  12-07-2007, 4:02 PM

    Re: CSS Primer

    only one element on a page can have a specific id attribute 

    div#blah targets the div element with the id="blah" attribute

    #blah targets the one element with the id="blah" attribute

    any number of elements on a page can specify the same class attribute 

    div.flibberty targets the div element(s) that contain the class="flibberty" attribute

    .flibberty targes any element(s) that contain the class="flibberty" attribute

     
    Read more about CSS and specificity:  CSS Specificity for Poker Players

     
    PS: I don't play cards (anymore)


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: , ,
View Complete Thread