[TYPO3-core] RFC: Bug 5678: Missing clearer div in csc-textpic-intext-left/csc-textpic-intext-right

JoH asenau info at cybercraft.de
Tue Apr 13 16:44:04 CEST 2010


> The .clearfix is use in my personal standard css is taken from YAML
> framework and looks like this:
>
> .clearfix:after{
> content: ".";
> display: block;
> clear: both;
> visibility: hidden;
> line-height: 0;
> height: 0;
> }
>
> .clearfix{
> display:inline-block;
> }
>
> html[xmlns] .clearfix{
> display:block;
> list-style-type:none;
> }
>
> * html .clearfix{
> height:1%
> }

Most of the YAML CSS stuff is already ugly, but this is one of the ugliest
CSS hacks I have ever seen.
And many of these "browser hacks" (CSS and JS related) used in the current
BE are i.e. the reason for IE8 to switch to compatibility mode and lose the
session.

A valid, clear and "browser safe" way of clearing floats is done with a
clearing HTML element and this is how CSC should do it as well.

If you don't want a clearing DIV container, maybe a BR will fit better from
a semantical point of view, but please don't make the most important
"extension" of TYPO3 depend on hacks like that!

Just my 2 cents

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




More information about the TYPO3-team-core mailing list