[TYPO3-english] Adding class attribute to an img tag

Pero Peric pperic at mail.com
Fri Sep 12 10:59:27 CEST 2014


On 12.9.2014. 3:59, Ralf-Rene Schröder wrote:
> Am 11.09.2014 20:15, schrieb Pero Peric:
>> On 11.9.2014. 19:17, Ralf-Rene Schröder wrote:
>>> for me (in 6.2.4) the following works...
> i had testet it in TYPO3 version 6.2.4 (i havn't read the CSC docs)
> maybe you or any extension has modified something there (i.e.
> imagecycle) ... look in your TSOB and find the right location
>
>>> BUT: a class for EVERY image makes no sense !!!
>>
>> Responsive design, bootstrap bla bla. I don't know, i'm not into CSS and
>> designer said yes, put it on every image :-)
>
> without your own class on every image you could assign every image in
> content with standard code in CSS
>
> .csc-textpic img {
>    foo:bar;
> }
>
>
> maybe you have to override higher specifications with:
> DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image img {
>    foo:bar;
> }
> or in extremly conditions with:
> DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image img {
>    foo:bar !important;
> }
>

Thx. Ralph i will look more into it and hopefully make it work.

Regards.



More information about the TYPO3-english mailing list