olly.draper
01-24-2006, 02:04 PM
CSS makes me dispair. Everytime I think i've got the hang of it, it throws me a curveball.
http://www.postaldesigns.co.uk
for some reason, the containing div(#table-01) seems to have a margin above and below it that I can't get rid of. Meaning the header div (#header) has big gaps between the top of the page and the navigational bar.
Also, the navigational bar which should be contained within the #table-01 div seems to be outside of it.
Any suggestions as to what's going on? It's probably dead simple, but it's got me stumped.
Here's the css:
/* CSS Document */
/*text formatting*/
a {
font-size:10px;
font-weight:normal;
}
p {
color:#330000;
font-family: Trebuchet, Arial, Helvetica, sans-serif;
font-size:10px;
padding:0px 0px 0px 0px;
margin:0px;
}
h1 {
color:#FFF;
font-family: Georgia, Arial, Helvetica, sans-serif;
font-size:12pt;
padding:0px 0px 0px 0px;
margin:0px;
}
/*page layout*/
#body {
padding:0;
margin:0;
}
#Table-01 {
padding:0;
width:800px;
height:115px;
margin-left: auto;
margin-right: auto;
border:1px solid #600;
border-right:1px solid #600;
margin-top:0;
margin-bottom:0;
}
#header {
width:800px;
height:115px;
background-image:url(images/logo.gif);
padding:0;
margin:0;
border:0
}
/*navigation*/
#navcontainer ul
{
padding-left: 0;
margin-left: 0;
background-color: #900;
color: White;
float: left;
width: 100%;
height:inherit;
font-family: Georgia, helvetica, sans-serif;
}
#navcontainer ul li { display: inline; }
#navcontainer ul li a
{
padding: 0.2em 1em;
font-size:10pt;
color: White;
text-decoration: none;
float: left;
border-right: 1px solid #fff;
}
#navcontainer ul li a:hover
{
background-color:#C33;
color: #fff;
}
Tested in firefox and safari.
Thanks for any help!
http://www.postaldesigns.co.uk
for some reason, the containing div(#table-01) seems to have a margin above and below it that I can't get rid of. Meaning the header div (#header) has big gaps between the top of the page and the navigational bar.
Also, the navigational bar which should be contained within the #table-01 div seems to be outside of it.
Any suggestions as to what's going on? It's probably dead simple, but it's got me stumped.
Here's the css:
/* CSS Document */
/*text formatting*/
a {
font-size:10px;
font-weight:normal;
}
p {
color:#330000;
font-family: Trebuchet, Arial, Helvetica, sans-serif;
font-size:10px;
padding:0px 0px 0px 0px;
margin:0px;
}
h1 {
color:#FFF;
font-family: Georgia, Arial, Helvetica, sans-serif;
font-size:12pt;
padding:0px 0px 0px 0px;
margin:0px;
}
/*page layout*/
#body {
padding:0;
margin:0;
}
#Table-01 {
padding:0;
width:800px;
height:115px;
margin-left: auto;
margin-right: auto;
border:1px solid #600;
border-right:1px solid #600;
margin-top:0;
margin-bottom:0;
}
#header {
width:800px;
height:115px;
background-image:url(images/logo.gif);
padding:0;
margin:0;
border:0
}
/*navigation*/
#navcontainer ul
{
padding-left: 0;
margin-left: 0;
background-color: #900;
color: White;
float: left;
width: 100%;
height:inherit;
font-family: Georgia, helvetica, sans-serif;
}
#navcontainer ul li { display: inline; }
#navcontainer ul li a
{
padding: 0.2em 1em;
font-size:10pt;
color: White;
text-decoration: none;
float: left;
border-right: 1px solid #fff;
}
#navcontainer ul li a:hover
{
background-color:#C33;
color: #fff;
}
Tested in firefox and safari.
Thanks for any help!