Menü schliessen
Created: May 20th 2012
Last updated: May 1st 2020
Categories: Typo3
Author: Marcus Fleuti

Typo3 :: Image width is limited to 300px (600px in Typo3 Ver > 6.x) - Set custom max image width for content elements

Tags:  Image,  Typo3
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

The problem

When content element with image is added in Typo3 the image width is limited to 300px (or 600px in Typo3 versions > 6.x) even if the width is manually set to a higher value.

The solution

Add the following two lines to your templates' constants and set the max width according to your template content width (limitation). Or higher if you want to experience the total freedom feeling 😉

styles.content.imgtext.maxW = 650
styles.content.imgtext.maxWInText = 650

* Usually this is done by clicking on the Template menu on your root page, select "Info/Modify) in the drop down menu and click on "Constants")