contao/test — Issue #601: class instead of inline style for floating images in text
Author: importer
Created: 2011-11-29 06:30:42+00:00
State: open
Labels: backend, Feature

Dear devs

![](

At first I would like to thank you for this wonderful cms)

I noticed that the BE setting for floating images in text leads to an inline style like style="float: left". My suggestion is to use classes (e.g. "left"/"right") for the surrounding image_container instead, so the developer can style the image (esp. general margins) in the stylesheet by using .image_container.left or image_container.right. The aim is to save the user from having to set the same margins for each image over and over again and on the other hand it seperates layout from content.

This change would require to also add the img width to the image_container, but only if set. It also would require two new classes in typolight.css: .left and .right.

Thank you so much & keep on the good work,
juju

--- _Originally created by anonymous on March 19th, 2009, at 10:32am (ID 601)_