开发者

Help me prevent horizontal scroller from appearing around relative positioned page

开发者 https://www.devze.com 2023-03-31 00:50 出处:网络
I\'m setting up http://www.streetofwalls.com You\'ll s开发者_运维技巧ee that there is an irritating gap appearing next to the relatively positioned #wrapper (which contains the whole page). It causes

I'm setting up http://www.streetofwalls.com

You'll s开发者_运维技巧ee that there is an irritating gap appearing next to the relatively positioned #wrapper (which contains the whole page). It causes the whole page to scroll about an inch to the right (for no apparent reason). I can remove the gap by changing the position property, but then the page doesn't center. I'm stumped about why this is happening. Help!


set the width of the facebook like button to 75 you don't need it to be 450


My only suggestion to try would be instead of having the div#wrapper be position relative, instead trying wrapper the header elements within a <header> ... </header> or simply a div, and then applying the position: relative; to that instead. Because that div will be 100% of it's parent (the wrapper - that is 860px)

Just a suggestion. Hope it helps!

0

精彩评论

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