Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
More CSS questioning. If I have a list setup like this:
t ul class="class_list"
t li class="class_item"
List item
t /li
t /ul
How do I, in CSS, specify ::before, say, for the list item? It took me a million years to work out a way to specify a generic
t li
in this instance (ul.class_list li::before
), but I keep breaking things trying to style the more complicated example.
ul.class_list li.class_item:before {...}
Should work.
Also: according to this IE8 is not good with double colons. So I would recommend sticking with single colons for the standard selectors.
Thanks! I could have sworn I tried that. Probably something very similar. There's the rub.
Did you get the email I sent you?
Yes. Just in case the response got stuck in a spamfilter:
You may use my css-file as you please. It is however Firefox 3 specific (for the rounded corners anyway) since I saw no reason for cross-browser coding.
Great. Thanks again. For the record, as you may have noticed, I'm breaking the links to the left.
You wouldn't happen to know if it's possible to override
ul.linkcluster li::first-letter {
color: #990000;
}
without explicitly stating the colour? I mean, to just erase settings for an attribute as if they'd never been written?
No, sorry.
I'm not sure whether it is even possible to unset attributes that don't support "none".
It would seem logical that it should be possible, wouldn't it? Or am I overwishing again?
Or am I overwishing again?
It would appear so. But on the other hand, haven't we all?
I can't set the colour explicitly, because sometimes the text is a link, so who knows what colour it's supposed to be. Man, the whole set of :: functionality seemed so cool, but it's been a bit of a headache today.
Maybe I'm approaching it wrong. Must think more.
Well, what exactly are you trying to do?