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

Ralf-Rene Schröder ralf.rene at online.de
Fri Sep 12 03:59:03 CEST 2014


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;
}

-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-english mailing list