开发者

Can somebody tell me what is wrong with the code in this page? The layout does not work properly in Safari browser

开发者 https://www.devze.com 2023-01-08 00:33 出处:网络
I do some work on on old tables based site. It is being replaced but I would like it to work for now.

I do some work on on old tables based site. It is being replaced but I would like it to work for now.

One of the pages in question is http://www.gdsofusa.com/marantec_garage_door_op开发者_StackOverflow社区eners.html. When this page (and some others) is viewed in Safari 5.0 (7533.16) and probably others, the page content is off to the right.

I just need to fix this since about 15% of the traffic is Safari.

Please help!


I got it working by:

Removing "float:left" on your "tabs" div
Setting your "tabs" li's as "display:inline-block" instead of "display:inline"

HTH


The first thing to try is always validation


A common cause of this kind of problem is a mismatched end tag on an HTML element.

Try an HTML validator like http://validator.w3.org

0

精彩评论

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