[TYPO3] question: tt_content rendering first <p> of a element with different css class?

Bernhard Welzel newsgroup at i-nox.de
Sun Feb 4 10:01:01 CET 2007


CSS can´t do the trick as i need to support some broken (ie6, ie7) and
older browsers.

even with the javascript lib "ie7" its not working good enough :-(

i just wrote a php class by now, but as expected is performance painful
slow.

- Bernhard

Sander van Gelderen schrieb:
>>
>> i´m looking for a way to give the first <p> tag of a tt_content element
>> (e.g.: text, text/w image) a different css class.
> 
> I am not sure how well the :first-child Pseudo-class is supported among
> browsers, but take a look here:
> http://www.w3schools.com/css/css_pseudo_classes.asp
> 
> example css:
> 
> div > p:first-child
> {
>     text-indent:25px
> }
> 


More information about the TYPO3-english mailing list