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?
lunabyte
Member
Posted 18 years ago #
as in:
#something ul {
list-style: none;
}
or
#something li {
list-style: none;
}
give us a link where it does not work so we can check :-)
Browser in which it is not worked as well please.
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;
lunabyte
Member
Posted 18 years ago #
use list-style, not list-style-type.
i changed it, still not working.
lunabyte
Member
Posted 18 years ago #
maybe right above list-style: none, use list-type-image: none or something.
@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.
i've never understood what all the craze was with having valid HTML/CSS.
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.
Plus work better in RSS readers although that's more of the actual content instead of the theme.
I could care less really...
lunabyte
Member
Posted 18 years ago #
No comment. Nope. Keeping my mouth shut on this one.
Suffice to say, I'm a big standards advocate.
@suleiman
you had some unclosed or improperly nested ul and li so fixing these will for sure help fixing the list-style problem.
... which would be another way of saying it was invalid.
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;
}
lunabyte
Member
Posted 18 years ago #
"background:none;"
Should be:
background: transparent;
"none" isn't valid css.
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.