开发者

Relative layout issue with IE7

Have a problem with relative positioned span and img not being correctly positioned in IE7. You can see the problem at:

http://bookgroupaustralia.obiweb.com.au/

The 'NEW' and 'SALE' spans should be top right of the title, and the cart image in the bottom right. They are correctly positioned in IE8,FF,Safari,Chrome. In IE7 they are appearing low开发者_如何学编程ers than expected.


IE7 doesn't appear to be picking up the margin correctly.

Try setting a position: relative; declaration on your productItem class. Then instead of setting margin values for your .listing span.badge classes, try setting the following values:

top: 0;
left: 0;

You'll also need to do the shopping cart icon (your img.cart class). Again, you want this image to be absolutely positioned at the bottom right corner of each list item:

.listing ul li.productItem img.cart, .listing ul li.productItemLast img.cart {
    bottom: 5px;
    cursor: pointer;
    position: absolute;
    right: 5px;
}

You may want to adjust the bottom and right positions a bit. That should take care of it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜