Help Understanding DIV CLASS

Discussion in 'CSS' started by ltrain, Mar 13, 2009.

  1. #1
    Hey all,

    I'm trying to hide a DIV on my page, contained within a number of divs and lists, and the div is classed as

    class="odd last"
    HTML:
    So I'm wondering how I describe this in the CSS stylesheet, I've tried

    div.pageLinks ul li.odd last {display:none; visibility:hidden;} 
    HTML:
    I know that the code before .odd last is correct, because I can use it to hide other divs without a space contained in their name. It's the space that is the issue - I don't know how to type it correctly.
     
    ltrain, Mar 13, 2009 IP
  2. ltrain

    ltrain Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ooh don't worry I figured it out - have to use a dot (.) in the stylesheet rather than a space

    :)
     
    ltrain, Mar 13, 2009 IP