Feature #43066
closed
Also other units than pixels in margins
Added by Katja Lampela about 12 years ago.
Updated almost 10 years ago.
Description
Since the css supports other units than pixels, it would be nice that TYPO3 would also for content element margins. I suppose the image size thing is harder but at least the margins (Appearance tab Top Margin and Bottom Margin) should be easy since it is done by css styles.
but can't this just be done with css_styled_content with TS?
- Status changed from New to Needs Feedback
Georg Ringer wrote:
but can't this just be done with css_styled_content with TS?
Sorry I don't quite understand - I mean the content element Appearance tab. If you put there, for example margin-top 2em, it deletes the em part. It seems to understand only numbers and treats them as pixels.
- Status changed from Needs Feedback to New
An editor mostly haven't access to TS or the css_styled_content, still valid with TYPO3 CMS 6.2.0a2
- Status changed from New to Rejected
Solution:
- Remove the eval = int from tt_content.spaceBefore and tt_content.spaceAfter in TCA
- Use renderSpace Hook in CssStyledContentController
Also available in: Atom
PDF