1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ul list-type in FF

Discussion in 'CSS' started by Hades, Jun 27, 2007.

  1. #1
    My website, for some reason, displays a list with bullets in FireFox. It works fine in Opera. (God knows what the hell it's doing in IE) I have no clue how to fix it, so is there anyone who can help me out. My knowledge of CSS is very little. I am glad I barely got the site to what it is now.
     
    Hades, Jun 27, 2007 IP
  2. Ginger Ninja

    Ginger Ninja Guest

    Messages:
    161
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thats easy. Add the following to your stylesheet;

    ul { list-style:none; }

    Or, if your list is in a div titled "sidebar" you can style just that list like so;

    #sidebar ul { list-style:none; }

    Hope it helps.
     
    Ginger Ninja, Jun 27, 2007 IP
  3. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #3
    the thing is, I have that in it already, but it still wont work

    /* sub navigation */
    #submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    }
    #submenu li {
    float: left;
    margin: 0 0.05em;
    }
    #submenu {background: url('img/block2.gif') #fff bottom left repeat;
    }
    #submenu {background: #fff bottom left; padding: 4em 5em 5em 5em;}
    #submenu a {
    background: url('img/block2.gif') #fff bottom left repeat;
    border-bottom: 1px solid #FFF;
    display: block;
    float: center;
    font: bold 1.7em Verdana,sans-serif;
    height: 2.3em;
    width: 2.3em;
    line-height: 2.0em;
    line-width: 2.0em;
    padding: .3em .5em .5em .5em;
    text-decoration: none;
    text-align: center;
    }

    #submenu a:active {
    background: url('img/grayblock.gif') #fff bottom left repeat;
    }
    #submenu a:hover {background: #444;}

    btw, it works great in opera, so I don't see what the problem is. IE 6 is completely screwed up, and I dont have IE7 to check it with.
     
    Hades, Jun 27, 2007 IP
  4. Ginger Ninja

    Ginger Ninja Guest

    Messages:
    161
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try changing list-style to list-style-type.
     
    Ginger Ninja, Jun 27, 2007 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Hmm. the list-style:none; should work on it's own, unless there's something else broken... silly question, but does the page validate?

    Which of your pages is this, the "Your Anime Source"? If so it's probably because you don't have your LI closed properly, are attempting to use the pagenav ID more than once, ... something VALIDATION would pick up.

    You've got four links in your sig and none in the post... Which one is it?
     
    deathshadow, Jun 27, 2007 IP
  6. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Hades, Jun 27, 2007 IP
  7. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #7
    Start from scratch.
     
    soulscratch, Jun 27, 2007 IP
  8. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #8
    That doesn't help me much, considering the fact i don't know anything about CSS, and it's a premade template.
     
    Hades, Jun 27, 2007 IP
  9. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #9
    Ok. So i just figured out why it isn't working, and although I do not have a solution, I know the problem, and that's a start. Anyway, what I did was put up the page that I had in the wordpress up onto a .php page, to test and see if the CSS was bad. Well this is what it is: www.erosennin.net/test.php

    As you can see, the bullets aren't there, even in FF. This means that the reason it's not working is because wordpress has another bullet system somewhere and does not allow the css to work inside of posts. (which explains why it works inside of the header)

    So, now i need to figure out where that little bullet comment is inside of wordpress and get rid of it, since I believe it's overriding the CSS, so if there is anyone that can help me out with this, I would really appreciate it.
     
    Hades, Jun 27, 2007 IP
  10. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #10
    First, try commenting this out for a quick test -
    #content ul li {list-style: url('img/li.gif');}

    That could be 'spilling over'...

    Also, it's being declared on a bunch of the LI's, which really is a waste of code... Not sure if it's what's causing your problem, but I'd yank all the list-style:none from the LI's and put it in all the UL's...

    Heck, you might want to consider just adding

    ul {
    list-style:none;
    }

    to the top of your css and removing all the other occurances. (and there's a lot of those)
     
    deathshadow, Jun 28, 2007 IP
  11. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #11
    dude, you like totally saved my life. I took the thing out of the content thing and it worked. Now I have to make that code smaller. Thanks for the advice.

    Nick
     
    Hades, Jun 28, 2007 IP