Change image margin in Typo3

淺唱寂寞╮ 提交于 2019-12-25 12:41:50

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!