Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / June 2006



Tip: Looking for answers? Try searching our database.

missing selector ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christophe Gaubert - 30 Jun 2006 18:05 GMT
    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)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.