valentine
04-02-2011, 01:10 PM
I am having lots of trouble with the layout of my site. Before you all jump on top of me for building an amateurish site, I have done it to the best of my knowledge. It is a centered layout with a fixed left column and the right column is an image section that has to scroll vertically, hiding under the header. The image area is defined by the following:
#imageswrap {
width: 589px;
padding-top:110px;
padding-left:401px;
height:100%;
z-index:-10;
}
within a container
#container {
position:relative;
width: 989px;
padding: 0px 20px 20px 20px;
margin: 0 auto;
}
The problem comes when I resize the browser to less than the width of the site. The image area starts to dance around below the fixed elements when controlled with the trackpad but this seems to happen only in firefox 4 and and when double finger scrolling on the trackpad. In the body I have declared
body {
overflow-x:hidden;
}
and this seems to do the trick on most browsers (haven't tried explorer) and it gets rid of the horizontal scrolling bars but it for anyone on firefox 4 on a mac laptop (which will be a lot of the audience of this site) it ruins the layout. Is there any way around this? Why is this happening to me??
You can find a working example here
http://test.venndiagram.eu/backbuttontest.html
and the stylesheet (ignore the stuff that doesn't apply here)
http://test.venndiagram.eu/murraycss-test.css
#imageswrap {
width: 589px;
padding-top:110px;
padding-left:401px;
height:100%;
z-index:-10;
}
within a container
#container {
position:relative;
width: 989px;
padding: 0px 20px 20px 20px;
margin: 0 auto;
}
The problem comes when I resize the browser to less than the width of the site. The image area starts to dance around below the fixed elements when controlled with the trackpad but this seems to happen only in firefox 4 and and when double finger scrolling on the trackpad. In the body I have declared
body {
overflow-x:hidden;
}
and this seems to do the trick on most browsers (haven't tried explorer) and it gets rid of the horizontal scrolling bars but it for anyone on firefox 4 on a mac laptop (which will be a lot of the audience of this site) it ruins the layout. Is there any way around this? Why is this happening to me??
You can find a working example here
http://test.venndiagram.eu/backbuttontest.html
and the stylesheet (ignore the stuff that doesn't apply here)
http://test.venndiagram.eu/murraycss-test.css