JordanBruce
New Member
Hi all,
I'm having issues with my company's corporate website: http://www.bitmicro.com/.
We want the background to be centered horizontally but to also scroll down when someone scrolls down the page. We haven't been able to accomplish this with background-position:center. The best we've been able to do is what we have right now:
.headerimg {
position: absolute;
left: 50%;
margin-left: -800px;
background-repeat: no-repeat;
overflow-x: hidden;
}
The problem with this is that there's a horizontal scroll bar that comes up in this instance. We don't want this to appear. Anyone have a solution for this? Thanks.
I'm having issues with my company's corporate website: http://www.bitmicro.com/.
We want the background to be centered horizontally but to also scroll down when someone scrolls down the page. We haven't been able to accomplish this with background-position:center. The best we've been able to do is what we have right now:
.headerimg {
position: absolute;
left: 50%;
margin-left: -800px;
background-repeat: no-repeat;
overflow-x: hidden;
}
The problem with this is that there's a horizontal scroll bar that comes up in this instance. We don't want this to appear. Anyone have a solution for this? Thanks.