Hi all,
I have a little problem with a stylesheet. It doesn't seem possible to
resolve it but one never knows :)
In CSS, is it possible to differentiate the two <span> in these
conditions :
<p class="foo"><span class="bar">some text</span></p>
<p class="foo">bla bla bla <span class="bar">some text</span></p>
Thanks for your help !
Christophe

Signature
Christophe Gaubert
Spartanicus - 30 Jun 2006 18:26 GMT
>In CSS, is it possible to differentiate the two <span> in these
>conditions :
>
><p class="foo"><span class="bar">some text</span></p>
>
><p class="foo">bla bla bla <span class="bar">some text</span></p>
No.
If you had told us what it is that you are actually trying to do we
would have been able to give a useful answer.

Signature
Spartanicus
Christophe Gaubert - 30 Jun 2006 18:48 GMT
Le 30/06/06, Spartanicus <invalid@invalid.invalid> a écrit :
> If you had told us what it is that you are actually trying to do we
> would have been able to give a useful answer.
I can't change the HTML code, it is generated by SPIP. So there isn't
anything to add...
Thanks for your answer.

Signature
Christophe Gaubert
Spartanicus - 30 Jun 2006 18:56 GMT
>> If you had told us what it is that you are actually trying to do we
>> would have been able to give a useful answer.
>
>I can't change the HTML code, it is generated by SPIP. So there isn't
>anything to add...
SPIP is GPL'd with permission to make alterations, thus you can change
the generated markup.

Signature
Spartanicus
Christophe Gaubert - 30 Jun 2006 19:11 GMT
Le 30/06/06, Spartanicus <invalid@invalid.invalid> a écrit :
> SPIP is GPL'd with permission to make alterations, thus you can change
> the generated markup.
Absolutely, but it would lead me to a more complicated problem. I will
probably take the time to talk with the developpers of SPIP or to
report the problem.

Signature
Christophe Gaubert
Andy Dingley - 30 Jun 2006 18:54 GMT
>In CSS, is it possible to differentiate the two <span> in these
>conditions :
No, but it would be easy in XSLT. Try treating it as a CMS problem and
pre-process the pages before uploading them, adding an extra class to
the <span> as needed (remember you can have multiple class names in an
element's class attribute)