问题
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.
回答1:
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:
Valid constants:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/css_styled_content/static/constants.txt
回答2:
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.
来源:https://stackoverflow.com/questions/33407976/change-image-margin-in-typo3