SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    UK
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with a list attribute

    Hi all

    I simply want the top parent link to have the '#leftmenu .active1' attribute applied to it - not it's child as well as can be seen here:

    http://www.condottiero.com/queries/Untitled-1.html

    'Property Form' should not have the graphic background visible. What am I do wrong?

    Thanks in advance!

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Location
    Toronto
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, the problem here is that you set the style to the <li> element which includes the <ul> element under it, so the background style applies to all of them. To solve it, try to apply the style to the <a> after the <li> element like this
    Code:
    <li><a class="active1" href="add_property.html" target="_self"><span>2: Add Property&nbsp;</span> <img src="../images/bullet_vertical.gif" alt="" width="6" height="10" /></a>
    <ul>
    <li><a href="add_property2.html" target="_self"><span>- </span>Property Form </a></li>
    </ul>
    Also, as a suggestion, close all your <li> tags, it's the proper format of xhtml

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    UK
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi kefeso, many thanks - that did the trick! Thanks also for spotting the open tags - oversite on my part.

    Thanks again!


Bookmarks

Posting Permissions

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