[TYPO3-english] image positioning not working

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Jan 28 10:17:43 CET 2010

Hi Katja,

Katja Lampela schrieb am 27.01.2010 23:49:

> I can't find what's wrong with my image positioning: one column images
> are all aligned left. Even though I choose center or right.
> And there is this css declaration in /typo3temp/stylesheet123....css
> div.csc-textpic-center div.csc-textpic-imagewrap .csc-textpic-image
> {text-align: left;}
> I have new installation 4.3.1 and I tried to uninstall extensions one by
> one but so far no help.

It should work, and if it doesn't, it probably not the behaviour coming
from css_styled_content (the generated typo3temp/styleshee** should work
fine), but might be something from your own CSS which might be
influencing the output.

> I opened the /typo3temp/stylesheet.. and there it is in the last line of
> this quote:
> --------------------
>     /* Center (above or below) */
>     DIV.csc-textpic-center { text-align: center; /* IE-hack */ }
>     DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; }
>     DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image
> { text-align: left; /* Remove IE-hack */ }
>     DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; /*
> Remove IE-hack */ }
> --------------------
> Above that all is /* default styles for extension "tx_cssstyledcontent" */
> but I tried older versions of css styledcontent in template include
> static section, but no help there.
> I obviously tried in my own stylesheet
> DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: center; }
> but no help.
> How can I get rid of this and get the positioning working?

The magic of the center positioning is done by the "margin: 0 auto".
Maybe you are overwriting the "margin" css style in your stylesheet?
Best way is to find out is to analyse your CSS with something like Firebug.

If you have an URL where the erroneous behaviour is shown, we could take
a look at it and help you better instead of just "guessing" what could
be wrong.


More information about the TYPO3-english mailing list