I've been using Dreamweaver for two years now, but I'm building a CSS-based website for the first time now. I'm very confused and I need some help!
1) The whole thing is supposed to be centered and it is on IE, but not on Firefox or Safari. What's the problem?
2) The text on the header is supposed to be left-aligned but I can't put it in the right position, even though I set it to left. There must be something wrong.
3) There must be something wrong with the height, too. There's a space between the side navigation area + main area, and the footer.
Also, I can't deal with the menu bottons. Does anyone know any good tutorial website for CSS-based websites? Any help will be greatly appreciated!
If you can post a link to your site I can help you debug your code. Align doesn't always work there are some exceptions to where it can be used. If you know the width of the div you are trying to center can use margin left and right set to auto to center it.
<html>
<head>
<style type="text/css">
#container
{
width: 300px;
margin: 0 auto;
padding: 10px;
border: 1px solid black;
}
</style>
</head>
<body>
<div id="container">
Cascading style sheet languages such as CSS allow style
information from several sources to be blended together.
However, not all style sheet languages support cascading.
To define a cascade, authors specify a sequence of LINK
and/or STYLE elements. The style information is cascaded
in the order the elements appear in the HEAD.
</div>
</body>
</html>