View Single Post
Old 06-27-2009, 11:58 PM   #5 (permalink)
kevin316
Member
 
Join Date: 06-07-09
Location: Western Canada
Posts: 46
iTrader: 0 / 0%
Latest Blog:
None

kevin316 is liked by many
Here is what my css looks like. I think you were talking about the the top two. I set them both to center but it didn't work. Am I missing something?

Quote:
@charset "UTF-8";
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
letter-spacing: normal;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
letter-spacing: normal;
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: #000000;
letter-spacing: normal;
font-size: 1em;
}
.oneColFixCtrHdr #container {
color: #000;
width: 776px;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
}
.oneColFixCtrHdr #header {
background: #DDDDDD;
padding: 0 0px 0 0px;
}
.oneColFixCtrHdr #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: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColFixCtrHdr #mainContent {
background: #FFFFFF;
padding-top: 0;
padding-right: 20px;
padding-bottom: 0;
padding-left: 20px;
background-color: #D5E5F7;
color: 103775;
text-align: left;
}

.oneColFixCtrHdr #footer{
font-size: 10px;
padding-right: 0px;
padding-left: 20px;
margin: 0;
background-image: url(images/Learn%202%20Eat%20Lines2.jpg);
height: 140px;
width: 756px;
overflow: hidden;
padding-top: 10px;
padding-bottom: 0px;
text-align: center;
color: 103775;
font-weight: 600;
line-height: 12px;
background-color: 86a8cc;
kevin316 is offline   Reply With Quote