[TYPO3-content-rendering] RFC: Let's discuss the "default frame" in 4.3

JoH asenau info at cybercraft.de
Mon Jun 15 12:14:17 CEST 2009


> With the patch applied you have created:
> <div style="margin-bottom:5px;"></div>

Has to be padding-bottom since it's the content-box inside the frame that
should be moved relatively to the boundaries of the frame. If you use margin
instead, this will raise another problem, since margins don't add up to each
other, if the browser is rendering stuff according to W3C standards.
i.e. having a box with after=25 and another one following with before=25
will result in a margin of 25 and not 50.
On the other hand it depends if the editors are using the same logic as the
W3C (then margin would fit) or a more "natural" approach, then they would
expect 50 px between the items.

So what's the logic TYPO3 should be using?
Since the name is not "margin" (something between two items) but "after" or
"before", which seems to be related to only one item, IMHO padding would be
the way to go.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com




More information about the TYPO3-project-content-rendering mailing list