开发者

IE8 Rendering extra Padding or Margin

开发者 https://www.devze.com 2023-01-08 13:33 出处:网络
I\'开发者_StackOverflow社区m having with some margin or padding issues with IE8 that I\'m hoping someone here will be able to help me out. Below is a screenshot of the site in IE7 with the correct spa

I'开发者_StackOverflow社区m having with some margin or padding issues with IE8 that I'm hoping someone here will be able to help me out. Below is a screenshot of the site in IE7 with the correct spacing (it looks pretty much the same in FF and Chrome/Safari as well).

alt text http://img80.imageshack.us/img80/9376/screenshot20100721at749.png

Next is the same page in IE8 with a whole bunch of extra spacing between the created by line and description.

alt text http://img687.imageshack.us/img687/9376/screenshot20100721at749.png

You can take a look at the live site here. I've messed around with the padding and margins without any luck, I have no idea where the extra space is coming from. Inspecting the element using the IE developer tools shows an offset that doesn't add up to me, but I'm not sure why this would be happening.

Any help at all would be greatly appreciated.


The problem is with the SPAN at the end of <span style="padding-left: 10px">1 Voter<span>. It should be a closing tag. Change this code to:

<span style="padding-left: 10px">1 Voter</span>

This will fix your problem.


Remove the padding from the div containing The best places for sharing a meal with someone special. and replace the div with a p. See what happens. Adjacent vertical margins should collapse properly.

0

精彩评论

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