KingDawg
10-13-2004, 02:31 AM
This is the first CSS layout I've made, and I'm having a problem positioning things correctly. Can somebody take a look at my site www.thefrankinpress.com (http://www.thefrankinpress.com) and see what i'm doing wrong? Here's my stylesheet:
Body {
margin:15px 0px 15px 0px;
text-align: center;
background: url(background.gif);
}
h1 {
font-family : Comic Sans MS;
text-transform : uppercase;
font-style : italic;
letter-spacing : 0.4em;
}
h2 {
font-family : Comic Sans MS;
font-weight: Normal;
font-size: 16px;
}
p {
margin:10px 10px 10px 10px;
font-family: Helvetica;
font-Weight: 100;
}
a {
color:#587FBC;
text-decoration:none;
font-size: 16px;
font-weight:600;
font-family: Comic Sans MS, sans-serif;
}
a:link {color:#587FBC;}
a:visited {color:#587FBC;}
a:hover {color:#69B5D4;}
a:link img {border: 1px solid #000;}
a:visited img {border: 1px solid #000;}
a:active img {border: 1px solid #000;}
Li {list-style: circle;}
.main {
margin: 0px auto;
float: middle;
width:730px;
text-align: left;
background: #ffffff;
border-top: 1px solid #000;
border-Left: 1px solid #000;
border-Right: 1px solid #000;
}
.top {
float: top;
border-bottom: 1px solid #000;
height: 100px;
background: url(topbg.jpg);
background-color: #d1edf3;
}
.Footer {
Text-Align: Right;
width: 730px;
padding: 3px 5px 3px 0px;
border: 1px solid #000;
background: #e8ecec;
font-size:11px;
text-decoration:none;
font-weight:500;
Color: #f7f6e3;
font-family:verdana, arial, helvetica, sans-serif;
}
.hmenu {
padding: 3px 0px 3px 0px;
float: left;
width: 33%;
border-bottom: 1px solid #000;
background: #e8ecec;
}
.hmenu a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
.hmid {
padding: 3px 0px 3px 0px;
float: left;
width: 34%;
border: 1px solid #000;
border-top: 0px;
background: #e8ecec;
}
.hmid a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
.vmenu {
Margin: 10px 7px 7px 0px;
padding: 3px 3px 3px 3px;
float: Left;
border: 1px solid #000;
border-left: 0px;
background: #e8ecec;
}
.vmenu a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
The code for my horizontal menu is pretty disgusting, but I couldn't figure out how to do it... so for some reason the middle link is separate from the other two. There's gotta be a better way to do this...
Also, I have no idea why the footer at the very bottom isnt centering??
And my bullets don't look right either! gah!! Any help?
Body {
margin:15px 0px 15px 0px;
text-align: center;
background: url(background.gif);
}
h1 {
font-family : Comic Sans MS;
text-transform : uppercase;
font-style : italic;
letter-spacing : 0.4em;
}
h2 {
font-family : Comic Sans MS;
font-weight: Normal;
font-size: 16px;
}
p {
margin:10px 10px 10px 10px;
font-family: Helvetica;
font-Weight: 100;
}
a {
color:#587FBC;
text-decoration:none;
font-size: 16px;
font-weight:600;
font-family: Comic Sans MS, sans-serif;
}
a:link {color:#587FBC;}
a:visited {color:#587FBC;}
a:hover {color:#69B5D4;}
a:link img {border: 1px solid #000;}
a:visited img {border: 1px solid #000;}
a:active img {border: 1px solid #000;}
Li {list-style: circle;}
.main {
margin: 0px auto;
float: middle;
width:730px;
text-align: left;
background: #ffffff;
border-top: 1px solid #000;
border-Left: 1px solid #000;
border-Right: 1px solid #000;
}
.top {
float: top;
border-bottom: 1px solid #000;
height: 100px;
background: url(topbg.jpg);
background-color: #d1edf3;
}
.Footer {
Text-Align: Right;
width: 730px;
padding: 3px 5px 3px 0px;
border: 1px solid #000;
background: #e8ecec;
font-size:11px;
text-decoration:none;
font-weight:500;
Color: #f7f6e3;
font-family:verdana, arial, helvetica, sans-serif;
}
.hmenu {
padding: 3px 0px 3px 0px;
float: left;
width: 33%;
border-bottom: 1px solid #000;
background: #e8ecec;
}
.hmenu a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
.hmid {
padding: 3px 0px 3px 0px;
float: left;
width: 34%;
border: 1px solid #000;
border-top: 0px;
background: #e8ecec;
}
.hmid a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
.vmenu {
Margin: 10px 7px 7px 0px;
padding: 3px 3px 3px 3px;
float: Left;
border: 1px solid #000;
border-left: 0px;
background: #e8ecec;
}
.vmenu a {
color:#587FBC;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family:verdana, arial, helvetica, sans-serif;
}
The code for my horizontal menu is pretty disgusting, but I couldn't figure out how to do it... so for some reason the middle link is separate from the other two. There's gotta be a better way to do this...
Also, I have no idea why the footer at the very bottom isnt centering??
And my bullets don't look right either! gah!! Any help?