user500665
user500665

Reputation: 1364

Change image margin in Typo3

When creating a 'Text & Images' element in Typo3 how can you adjust the left/right margin around the images?

The default margin between text and images is too small, is there a line I can add to the template to set a custom margin or something else?

Any help appreciated.

Upvotes: 0

Views: 660

Answers (2)

Martin K.
Martin K.

Reputation: 1127

If you use css_styled_content then you can configure this with constants.

styles.content.imgtext.textMargin = 10

Just over the backend or over TS:

enter image description here

enter image description here

Valid constants:

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/css_styled_content/static/constants.txt

Upvotes: 1

biesior
biesior

Reputation: 55798

You can do it with CSS, just inspect the HTML code, each image layout has it's set of classes, so you can easily override it.

Upvotes: 0

Related Questions