|
Posted by dorayme on 11/21/06 20:21
In article <3jG8h.2509$4M6.860@tornado.fastwebnet.it>,
Bubu <bubumoko@-NOSPAM-yahoo.com> wrote:
> > Yes? Your problem with that is exactly what? Apart from the issue of
> > inventing better class names, maybe.
> >
> > You can even do things without class attributes for <li> elements if
> > you are willing to accept the situation that old browsers like IE 6
> > won't apply all of your styles. You can say, for example,
> > .ulclass li:first-child+ li + li { font-weight: bold; }
> > to make the third item in the list bolded.
> >
>
> My problem is in the third li, in other words my class use a background
> image (for ul and for li)
which class exactly? Using the same class for ul and li? Or are
there two classes, one for the li and one for the ul?
> For the third li I need to use a different background image, but when I
> apply the class to the third li and open in firefox, I see the third
> element with my third class surrounded by the ul class.
Well, it sounds like you are getting the effect of the ul bg as
well as the li one. <li>s are "inside" <ul>s so you can expect
independent behaviour.
--
dorayme
[Back to original message]
|