The MU forums have moved to WordPress.org

Why Doesn't List-Style-Type Work ALL the time???? (18 posts)

  1. suleiman
    Member
    Posted 14 years ago #

    I just don't get it. Sometimes it works. Sometimes it doesn't. It seems to be theme dependent.

    I'm concerned about my admin bar, because I wanted some consistency in my site. It loads fine on each theme, but some of them aren't respecting the admin bar's right to an image-free list display.

    Anyone CSS hackers out there?

  2. lunabyte
    Member
    Posted 14 years ago #

    as in:

    
    #something ul {
    list-style: none;
    }
    

    or

    
    #something li {
    list-style: none;
    }
    
  3. Ovidiu
    Member
    Posted 14 years ago #

    give us a link where it does not work so we can check :-)

  4. drmike
    Member
    Posted 14 years ago #

    Browser in which it is not worked as well please.

  5. suleiman
    Member
    Posted 14 years ago #

    http://asma.hadithuna.com/, in any browser, and I'm talking about the admin bar plugin, so the offending lines are:

    #wp-admin-bar ul li, #wp-admin-bar-right ul li {
    list-style-type: none;

  6. lunabyte
    Member
    Posted 14 years ago #

    use list-style, not list-style-type.

  7. suleiman
    Member
    Posted 14 years ago #

    i changed it, still not working.

  8. lunabyte
    Member
    Posted 14 years ago #

    maybe right above list-style: none, use list-type-image: none or something.

  9. Ovidiu
    Member
    Posted 14 years ago #

    @suleiman

    I had a look at your HTML and your CSS and tried validating the HTML. You still got some 16 errors, but all of them do look like they are easy to fix, some unclosed or wrongly nested elements and my guess is that if you fix these we'll get that list-style-type thingy working.

  10. suleiman
    Member
    Posted 14 years ago #

    i've never understood what all the craze was with having valid HTML/CSS.

  11. andrea_r
    Moderator
    Posted 14 years ago #

    Valid means correctly done according to "the rules". Sure, it'll look right most of the time otherwise, when it's just slapped together, but when it's clean & valid it's more likely to work right plus load faster.

  12. drmike
    Member
    Posted 14 years ago #

    Plus work better in RSS readers although that's more of the actual content instead of the theme.

    I could care less really...

  13. lunabyte
    Member
    Posted 14 years ago #

    No comment. Nope. Keeping my mouth shut on this one.

    Suffice to say, I'm a big standards advocate.

  14. Ovidiu
    Member
    Posted 14 years ago #

    @suleiman

    you had some unclosed or improperly nested ul and li so fixing these will for sure help fixing the list-style problem.

  15. andrea_r
    Moderator
    Posted 14 years ago #

    ... which would be another way of saying it was invalid.

  16. suleiman
    Member
    Posted 14 years ago #

    fyi, i was able to fix this problem (without having to go through the validation nigthmare) by going into admin bar php file and editing the css to read:

    #wp-admin-bar ul li, #wp-admin-bar-right ul li {
    background:none;
    }

  17. lunabyte
    Member
    Posted 14 years ago #

    "background:none;"

    Should be:

    background: transparent;

    "none" isn't valid css.

  18. suleiman
    Member
    Posted 14 years ago #

    yeah....i'm not really too concerned about "valid" css. But thanks for pointing it out luna, it's a quick fix in this case.

About this Topic

  • Started 14 years ago by suleiman
  • Latest reply from suleiman