SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    USA
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making <li> disappear in Ajax Tab script

    I'm using an ajax tab script for navigation and the <li>, which the script uses, displays next to the image (in this case, gfx/logo.png). Is there another element I can use? Can it be hidden in some fashion? I'm confused.

    <td rowspan="2" style="height: 85px; width: 150px"><div id="nav" class="navitems"><li><a href="#default" rel="ajaxcontent"><img src="gfx/logo.png" alt="Preston's Restaurant" width="150" height="85" border="0"></a></li></div></td>

    Here's the css:

    .navitems li {
    display: inline;
    margin: 0;
    }

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,095
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    That's not close to valid or semantic.

    Why do you want to use markup for a list for a Single Item?
    You can't use a li element without a parent ol or ul element.

    Validate.

    I'm not sure what the question is.


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
  •