开发者

Chrome/Safari/WebKit (and IE?): Overflow not being respected

开发者 https://www.devze.com 2023-02-03 03:02 出处:网络
Can anyone tell me why the menu at http://preview.endlesscircle.org/ expands by about 5px horizontally only in WebKit and Trident (IE) when you click the menu on \"Parent Education\" to view th开发者_

Can anyone tell me why the menu at http://preview.endlesscircle.org/ expands by about 5px horizontally only in WebKit and Trident (IE) when you click the menu on "Parent Education" to view th开发者_如何学Goat page (but not FireFox)?

(Oddly enough, in Chrome, when you have the Developer Tools window open in the same window as the web page--open as a panel, the issue disappears.)

It's the only page in WebKit where the menu width expands, and in IE, it expands on that page and "Community Involvement."

The CSS for #body is:

#body
{
    margin-top:208px;
    position:absolute;
    width:925px;
    padding:0 20px 0 20px;
    overflow:hidden;
    overflow-y:visible;
}

How come in WebKit and IE the horizontal overflow is not hidden? For the life of me, I just cannot figure this one out!


In parent-education.css you're restating the width of body:

body 
{
    width:933px;
}

Take it out and Webkit should work fine now. I'm not able to test in IE7.

0

精彩评论

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

关注公众号