[TYPO3] Image right or below text depending on layout width?

Christopher bedlamhotel at gmail.com
Fri Apr 28 16:29:23 CEST 2006


Hi,

On 4/28/06, Gebhardt Thomas <gebhardt at hrz.uni-marburg.de> wrote:

> You're right. "display: inline;" is nonsense here and has no effect.

<snip>

> 1. Is there some strange reason why the author of css-styled-imgtext
> uses " float: left; display: inline; " here?

<snip>


Most of the time when you see strange css in relation to a floated
element, it's to fix an IE Win float bug--and there are countless
float (really 'haslayout') bugs in IE for Windows. I haven't analyzed
the new imagetext's html / css, but I suspect this is the real reason.

Just for example, 'display:inline' on a floated element will fix IE's
'doubled margin float bug' [1]; if I recall correctly it works on some
other 'haslayout' [2] type bugs in IE too.


-Christopher

[1] http://www.positioniseverything.net/explorer/doubled-margin.html
[2] http://www.webmasterworld.com/forum83/6999.htm



More information about the TYPO3-english mailing list