|
Nicole -> Layout Problems (1/9/2005 19:28:32)
|
I'm nearing the end (hopefully) of creating my first valid XHTML website using CSS. I've decided to validate it using "Transitional" rather than "Strict", as it was an old template that used tables for layout, many of them nested. It seems to me as if XHTML Transitional is more lenient on the width attribute, can anyone varify that at all? So the site is valid, but i still have 4 visual properties with the site that aren't quite right and having spent a long time trying to figure them out, i'm wondering if anyone here can help at all? This is the website and i'd like it to appear as close to the template as it existed on my portfolio page. - There is too little padding above the banner compared to the original.
- There is a small white space at the bottom of the table containing the banner which i can't seem to eliminate.
- The links in the navigation should be a lighter grey to begin with.
- The main body of the page (containing the 3 columns) should have widths of 25%, 55% and 20% respectively but i'm having a terrible time trying to get that to happen.
Can anyone perhaps compare the XHTML to my css code body {
background-color: #f4f0e6;
}
p {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 0.9em;
}
#page table {
border: 1px solid #000000;
background-color: #ffffff;
padding: 10px;
margin-right: auto;
margin-left: auto;
}
#header table {
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
align: center;
margin-top: auto;
margin-bottom: auto;
}
#navigation table {
background-color: #b19547;
padding: 5px;
}
#navigation p {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #525252;
text-align: right;
}
#navigation a:link, a:visited, a:active {
color: #525252;
text-decoration: none;
}
#navigation a:hover {
color: #ffffff;
}
#content table {
border: 0px solid;
padding: 10px;
}
#content h4 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 1.0em;
font-weight: bold;
text-align: left;
}
#content img {
border: 1px solid #000000;
float: left;
margin: 5px;
}
#content ul {
list-style-type: square;
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 1.0em;
text-align: left;
}
#content p {
text-align: left;
}
#lefttop table {
border: 1px solid #000000;
background-color: #f4f0e6;
}
#lefttop h1 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #000000;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#leftmiddle table {
border: 1px solid #000000;
background-color: #568406;
padding: 10px;
}
#leftmiddle h2 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #ffffff;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#right table {
border: 1px solid #000000;
padding: 10px;
background-color: #006897;
text-align: left;
}
#right p {
color: #ffffff;
}
#righttop table {
background-color: #003366;
border: 1px solid #000000;
padding: 10px;
}
#righttop h3 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #ffffff;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#footer table {
border: 0px solid;
}
#footer p {
font-size: 0.9em;
color: #666666;
text-align: right;
margin-top: 0px;
margin-bottom: 0px;
}
#footer a:link, a:visited, a:active {
color: #666666;
text-decoration: none;
text-align: right;
}
#footer a:hover {
color: #000000;
text-align: right;
} and possibly enlighten me a little (or a lot) about why these 4 things just aren' working for me? Thanks Nicole
|
|
|
|