Jeremy Collins wrote:
[color=blue]
> Els wrote:
>[color=green]
>> Els wrote:
>>[color=darkred]
>>> Jeremy Collins wrote:[/color][/color]
>[color=green][color=darkred]
>>>> margin-right: 10%;
>>>>
>>>> 10% of what? The screen? The containing <DIV>? It's hard to tell
>>>> by looking at it...
>>>
>>> Parent element.
>>> In the case of margins next to the containing div: the body.
>>> Set it to 50% and it will be easy to tell by looking at it...[/color]
>>
>> Having said that, I do remember something about IE having a different
>> behaviour in some cases. Like when you set a div to be 100% wide, it
>> will act as if it's 100% of the body, instead of the parent element.
>> Not sure exactly though.[/color]
>
> With li { margin-right: 50%; } Mozilla and Opera draw the text to
> about half way across the containing DIV, correctly, as you say.
>
> IE renders the li to about 25% of the containing DIV! (In a
> 3-column layout).[/color]
So my guess is that the containing DIV is eh.... well,
anyway, 75% of the containing DIV equals 50% of the body?
(I used to be better at calculations)
[color=blue]
> Bah. Anyway, thanks for the help.[/color]
Must be a way around it, I'd say?
Some IE hack to give different percentages to IE?
http://centricle.com/ref/css/filters/
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -