I’m a Navy Chief who is out to sea, and I’m trying to redesign my website while I’m gone. I’ve run into a little trouble after making a few changes. I can’t get my picture to come up to align at the top (with the sidebar). The code for the style sheet (which would be style_sheets/main.css is below:
html, body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
}
body {
background-color: #fff;
color: #000000;
font-size: 90%;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
position: relative;
}
a {
color: #001d31;
font-weight: bold;
}
a:hover {
color: #001d31;
text-decoration: none;
}
h1 {
font-size: 1.4em;
font-family: Georgia;
color: #000000;
margin: 0;
padding-top: 3px;
padding-bottom: 2px;
}
h2 {
font-size: 1.0em;
font-family: "Trebuchet MS";
color: #000000;
text-transform: uppercase;
margin: 0;
padding: 0;
}
h3 {
font-size: 0.9em;
font-family: "Trebuchet MS";
margin: 0;
padding-bottom: 8px;
}
h4 {
font-size: 0.8em;
font-family: "Trebuchet MS";
color: #191970;
text-transform: uppercase;
margin: 0;
padding-bottom: 8px;
}
p {
margin: 0;
padding-bottom: 8px;
}
hr {
clear: both;
height: 1px;
border-top: solid 1px #001d31;
}
img {
border: none;
}
#wrapper {
margin: 0 auto;
width: 733px;
text-align: left;
height: 100%;
}
#head {
background-color: #f0f8fa;
height: 90px;
color: #A2ADB9;
border: 1px solid #c0c0c0;
}
#head div {
float: left;
clear: right;
height: 65px;
}
#logo {
width: 185px;
}
#logo a {
display: block;
color: #c0c0c0;
padding: 30px 10px 10px 10px;
font-size: 32px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
text-decoration: none;
}
#slogan {
width: 474px;
border-left: 1px solid #c0c0c0;
text-align: center;
}
#slogan span {
display: block;
padding: 28px 0 0 14px;
font-size: 38px;
letter-spacing: -2px;
color: #000000;
}
#side {
padding-bottom: 0px;
width: 165px;
background-color: #f0f8fa;
height: 120px;
}
#menu {
padding: 0;
margin: 0;
border: 1px solid #c0c0c0;
}
#menu a {
text-decoration: none;
color: #ffffff;
display:block;
}
#menu ul {
padding: 0 0 0 0;
margin: 0;
list-style: none;
}
#menu li {
margin: 0;
padding: 0;
font-size: 11px;
font-family: Arial;
}
#menu ul li a {
margin-top: 0px;
padding: 0 15px;
height: 21px;
line-height: 21px;
font-weight: bold;
color: #000000;
background-color: #f0f8fa;
text-transform: uppercase;
border-top: 1px solid #c0c0c0;
border-bottom: 1px solid #c0c0c0;
}
#menu ul li ul li a {
margin-top: 0;
padding: 0 25px;
height:19px;
color: #ffffff;
line-height: 19px;
font-weight:normal;
text-transform: capitalize;
background-color: #f0f8fa;
border-top: 1px solid #c0c0c0;
border-bottom: 1px none #c0c0c0;
}
#menu ul li ul li ul li a {
padding: 0 35px;
background-color: #f0f8fa;
background-image: none;
}
#menu li li li li a {
padding-left: 50px;
}
#menu ul li ul li ul li ul li a {
background-color: #f0f8fa;
background-image: none;
}
#ads {
padding: 0;
margin: 0;
background-color: #f0f8fa;
font-size: 12px;
color: #000000;
border: 1px solid #c0c0c0;
}
#ads a {
color: #ff69b4;
}
#ads dt {
padding: 0;
margin: 6px;
border-top: 1px solid #ffffff;
border-bottom: 1px solid #ffffff;
}
#ads dd {
margin: 0;
padding: 6px 12px;
border-bottom: 1px solid #ffffff;
font-size: .8em #000;
border-bottom: 1px solid #c0c0c0;
line-height: 1.2em;
}
#body {
float: right;
margin-top: 3px;
width: 548px;
clear: both;
position: relative;
}
#visual {
position: relative;
margin: 0;
height: 425px;
background-image: url(../images/visual.jpg);
background-repeat: no-repeat;
}
#visual span {
padding-left: 10px;
color: #ffffff;
}
#content {
position: relative;
float: left;
padding-right: 14px;
}
#content ul {
padding: 0;
margin: 1;
list-style: none;
}
#content li {
margin: 0;
padding: 0;
font-size: 12px;
font-family: "Trebuchet MS";
}
#fourcells {
clear: both;
}
#fourcells div {
float: left;
font-size: .9em;
font-weight: normal;
clear: right;
}
#fourcells a {
display: block;
width: 162px;
height: 95px;
margin-bottom: 10px;
}
#fourcells span {
display: none;
}
#cell_1 {
width: 162px;
padding-right: 15px;
padding-left: 5px;
}
#cell_1 a {
background-image: url(../images/justyce.jpg);
}
#cell_1 a:hover, #menu li a.active {
background-image: url(../images/babyjustyce.jpg);
}
#cell_2 {
width: 162px;
padding: 0 15px 0 15px;
border-left: 1px solid #001d31;
border-right: 1px solid #001d31;
}
#cell_2 a {
background-image: url(../images/devin.jpg);
}
#cell_2 a:hover, #menu li a.active {
background-image: url(../images/babydevin.jpg);
}
#cell_3 {
width: 162px;
padding-left: 15px;
border-right: 1px solid #001d31;
}
#cell_3 a {
background-image: url(../images/boy.jpg);
}
#cell_3 a:hover, #menu li a.active {
background-image: url(../images/babyboy.jpg);
}
#cell_4 {
width: 162px;
padding-left: 15px;
}
#cell_4 a {
background-image: url(../images/colbilyn.jpg);
}
#cell_4 a:hover, #menu li a.active {
background-image: url(../images/babycolbilyn.jpg);
}
#foot {
clear: both;
padding: 1em;
background-color: #f0f8fa;
font-size: .8em;
line-height: 1.4em;
text-align: center;
position: relative;
border: 1px solid #c0c0c0;
}
#foot2 a:link {
color: #ffffff;
}
I will have to post the HTML file in a reply so that someone can help.