Forum Moderators: not2easy
body {text-align: center; /*Center align for IE */
}
.wrapper {
margin: 0 auto; /* Center align for Good browsers like Firefox, Opera, Netscape */
text-align: left;
width: 800px;
}
The site is: <snip>
[edited by: swa66 at 7:42 pm (utc) on Oct. 16, 2009]
[edit reason] No links, please see ToS and Forum Charter [/edit]
My recommendation is to strip the HTML and CSS down to the problem of the framework itself. If the fix is not found during this process, post the test ready code that replicates the problem and we will look at the options.
..................................
it centers in dreamweaver, but now in my browser.
Makes me ask if some code is being added or edited accidentally.
Normally auto margins and a width is all that's needed to center a block element.
body
{
text-align: center;
}
div#container
{
margin-left: auto;
margin-right: auto;
width: 770px; //insert your site width instead
text-align: left;
}
</style>
</head>
<body>
<div id="container">
//website in here
</div>
</body>
</html>
This works in every browser.