Yes this is a stupid question I thought I'd figured out long ago, but I'm trying to center a layer with multiple layers within it so it will center when different screen resolutions are used. Here’s the code I was working with:
<style type="text/css">
.centre {
width: 940px;
margin-right: auto;
margin-left: auto;
position: relative;
left: 6px;
top: 7px;
height: 449px;
}
/*hack for IE5*/
body {
text-align: center;
}
</style>
The problem is the horizontal scroll bar shows up even when there’s no content on the far right of the site. I’m sure I’m making this harder then it is, but can someone give me a hand or show me an alternate way to center a single layer with multiple layers within?
Thanks in advance!