SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How did I get double bullets in my unordered list?

    I'm building a site which uses stylesheets, and my unordered list on the side linking to category archives inexplicably has double the number of bullets it needs. It has the bullet before the list item, then the next line has a bullet without any list item, etc.

    I've run the stylesheet through CSS Lint and made sure I wasn't generating any extra li tags, but I didn't encounter any (obvious) errors. Does anyone have any idea what I could be doing wrong? The site-in-progress is at http://www.Dejerine-Sottas.com/, and the offending stylesheet is at http://www.Dejerine-Sottas.com/styles-site.css. Thanks in advance for your assistance.

  2. #2
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problems not in the CSS it in the HTML, you are not closing you List Item tags correctly </li>, and the browser (IE at least) is forgiving you by adding an extra, blank, line.

    Code:
    <ul type="square">
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_assistive_technology.php">Assistive Technology</a></li>
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_gene_therapy.php">Gene Therapy</a></li>
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_genetics.php">Genetics</a></li>
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_misc_weird_cool.php">Misc. || Weird || Cool</a></li>
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_people.php">People</a></li>
    <li><a href="http://www.Dejerine-Sottas.com/archives/cat_stem_cell_research.php">Stem Cell Research</a></li>
    </ul>
    That should work.

  3. #3
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right under my nose the whole time! Thanks for spotting that.


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
  •