开发者

table in wrong place in different browsers?

开发者 https://www.devze.com 2023-01-26 05:13 出处:网络
I have a problem where everything looks as expected in Chrome and Firefox but when I open my homepage in IE, I have two tables in particular that shift to the left quite a bit. One part of the table k

I have a problem where everything looks as expected in Chrome and Firefox but when I open my homepage in IE, I have two tables in particular that shift to the left quite a bit. One part of the table kind of stays in place but the rest of it moves...seems really odd to me.

How can I make these tables stay in the same place? Is there any attribute I can use to开发者_StackOverflow社区 keep the tables in fixed places?

Cheers guys

looks like this in chrome

table in wrong place in different browsers?

and this in IE

table in wrong place in different browsers?


Maybe you can take a look at your code and see if the individual columns have width set to it.

One scenario where one part of table stay in place, the rest of it moves could be due to the part that stays has width style added to it, while the rest does not have any width style.

If the above scenario is the one that applies, you can easily set the individual column width by giving a style - style="width: XXX px;"


This is why you need an online account. Anything we say is all guesswork. The fact that IE is not acting like the other far more modern browsers is expected. Are you using a doctype? Without one, you are in quirks mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消