gebruiker6
New Member
I have a large banner on my site, and the banner has rotating images, all inside of a \[code\]<div>\[/code\]. It stretches across the whole page, and the images are large, 2000px wide, so that almost no matter what the screen width, the image will just keep expanding to the left and right.How do I keep the center of the \[code\]<div>\[/code\] positioned so that everything inside of it lines up with the content of the page (about 1000px), and stays there even when the page width is stretched?Right now, the left side of the image just sticks to the left side of the page no matter what the width, so the image moves relative to the page content depending on the window's width. Here's the code on the \[code\]<div>\[/code\] now\[code\]position: relative;display: block;width: 2000px;height: 648px;margin: 58px auto 0 auto;\[/code\]Thank you!