margin-right in IE6

C

chlori

Hello

I have a div which I will use for my content.
My problem is, that the content flows off the right
side (in IE6) and ignores the "margin-right : 220px;".
In Mozilla 1.3 and IE5 it looks how I want it to...

Can someone help me here?

div.content
{
position : absolute;
top: 0px;
left: 0px;
margin-left : 330px;
margin-right : 220px;
margin-top : 112px;
color : #CCCCCC;
}

URL: http://tests.tvlunkhofen.ch

Thanks
 
D

David Graham

chlori said:
Hello

I have a div which I will use for my content.
My problem is, that the content flows off the right
side (in IE6) and ignores the "margin-right : 220px;".
In Mozilla 1.3 and IE5 it looks how I want it to...

Can someone help me here?

div.content
{
position : absolute;
top: 0px;
left: 0px;
margin-left : 330px;
margin-right : 220px;
margin-top : 112px;
color : #CCCCCC;
}

URL: http://tests.tvlunkhofen.ch

Thanks
Try putting a border on div.content so you can see where its boundaries are.

border: soild 3px blue;

should do it. Your probably not balancing the page properly - try increasing
margin-right to the same value as margin-left

HTH
David
 
M

Marc

I have a div which I will use for my content.
My problem is, that the content flows off the right
side (in IE6) and ignores the "margin-right : 220px;".
In Mozilla 1.3 and IE5 it looks how I want it to...

Can someone help me here?

div.content
{
position : absolute;
top: 0px;
left: 0px;
margin-left : 330px;
margin-right : 220px;
margin-top : 112px;
color : #CCCCCC;
}

URL: http://tests.tvlunkhofen.ch

IIRC, IE6 has a bug with margin-right, and you have absolute positioning as
well as margin statements which will just confuse IE - use the following:

div.content
{
position : absolute;
top: 112px;
left: 330px;
right : 220px;
color : #CCCCCC;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top