Hi, I used dreamweaver for a basic template (1 column liquid, centered, header & footer) So i could just change some of the properties as I'm not all that '
CSS clued-up'
my attached style sheet reads (I left the comments)
- Code: Select all
@charset "utf-8";
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
}
.oneColLiqCtrHdr #container {
width: 80%; /* this will create a container 80% of the browser width */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColLiqCtrHdr #header {
padding: 0 10px 1px 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
color: #CCCCCC;
background-color: #3C3C3C;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.oneColLiqCtrHdr #nav {
padding: 0 10px 1px 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
color: #CCCCCC;
background-color: #515151;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.oneColLiqCtrHdr #pic {
padding: 83px 10px 1px 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
color: #CCCCCC;
background-color: #515151;
background-image: url(header.jpg);
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.oneColLiqCtrHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColLiqCtrHdr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
background: #FFFFFF;
}
.oneColLiqCtrHdr #footer {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#DDDDDD;
}
.oneColLiqCtrHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
The preview is great in IE7 (apart from the spry sub-menu positions)
Not so good in Mozilla / Opera
I have white space above my #header div and the spry menu (#nav div) sits on the #pic div
Sry I'm dumb
It's for a primary school so be merciful I'm not charging them.