Hi gang,
I know I should know this, but this late at night it's got me on a go slow.
I've built a page in dreamweaver with layers (divs) and now I want the whole page to centre in the browser, but it wont do it.
I have hand coded another div in the code
Code:
<body>
<div class="container" id="container">
whole page content here
</div>
</body>
then, with
css, styled the container as follows
Code:
.container {
text-align: center;
margin: 0 auto;
padding: 0px;
}
I have layers/divs within the main body that have absolute positions, but didn't think that would be a problem as they are all within the container....could it be they are positioning themselves absolutely to the top and left even though the containing div is centred as a whole?
any suggestion would be very welcomed
much appreciated
(I'd rather not turn it into tables and cells, and it needs to work as a template with regions added to numerous pages, as it will be edited via contribute eventually)