WEB Any Drupal customizers in here?

Discussion in 'OT Technology' started by MrBrotato, Oct 17, 2007.

  1. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    I am on some pain killers for my wisdom teeth removal so sorry if this doesn't all sound right, I'm about to pass out.


    I have been toying with Drupal a lot and I am confused about the menu. I am building a custom theme but the menu is done using a list which I have never done before. I just want to know how to apply styles and hover styles to this list. It outputs something like

    Code:
    <ul id=menu>
    <li class=leaf><a href=...>home</a></li>
    <li class=leaf><a href=...>contact</a></li>
    <li class=leaf><a href=...>another page</a></li>
    </ul>
    
    Can someone please explain the css to apply color and hover color to those links. I can't seem to make it work without styling ALL links or ALL lists. I just want to style THOSE links in THAT list. If I did the HTML myself I would just have a class in the <a> tag, but they do not do that, so I don't know how to make this work.
     
  2. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    I guess this is a CSS question, not Drupal. Oh well, I can't feel my body so I'll leave it as is and togo bed now. Thanks for any help guys :).
     
  3. drpepper

    drpepper Active Member

    Joined:
    Nov 13, 2006
    Messages:
    38,076
    Likes Received:
    2
    Location:
    San Antonio
    put it in a div and do it like this

    Code:
    #divhere ul {attributes}
    #divhere li {attributes}
     
  4. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    LOL, I don't even know what I was doing last night. This works of course, thank you :).
     
  5. drpepper

    drpepper Active Member

    Joined:
    Nov 13, 2006
    Messages:
    38,076
    Likes Received:
    2
    Location:
    San Antonio
    np :)
     

Share This Page