471,618 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

IE Margin Issue

22
Hey all,
I'm sure this has been asked before but I can't seem to find the answer (don't know exactly how to word it)...

I've got a table and I set the margin like so:
Expand|Select|Wrap|Line Numbers
  1. style="margin:0px 40px;"
In FF it looks fine... in IE, the right margin of the table appears to be zero (text pushed right against right-side of window). I tried writing like so:
Expand|Select|Wrap|Line Numbers
  1. style="margin-left: 40px; margin-right: 40px;"
but the same problem occurs.. I also tried increasing the margin-right to 80px thinking that maybe there was some kinda offset issue but the text is still pressed against the right-side of the window.

Any thoughts?
Nov 22 '07 #1
2 1162
Mugs321
22
I seem to have fixed the problem... though I don't know why it was happening in the first place (guessin an IE bug)...

I forgot to mention in the previous post that this was a nested table. As such, I used padding on the cell the table was located in instead of setting the magin on the nested table itself:
[HTML]<td colspan="2" style="padding:0px 40px;">[/HTML]

It now looks the same in both browsers. I'd still appreciate a reply if anyone knows why this happened.
Nov 22 '07 #2
drhowarddrfine
7,435 Expert 4TB
It's always an IE bug.

I rarely use tables for anything so I'm not much help here.
Nov 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.