wienerdog
11-30-2006, 02:38 PM
I'm having some trouble getting my CSS to display properly.
I've got a container DIV and a DIV inside as a header container. My main container has a 2px border and I'd like the header DIV to have the same border at the bottom, but it is appearing above the DIV to the right instead of the bottom of the DIV ID "header".
Also, the whole DIV ID "header" should have a green background, but it's not working, it's only applying the green background to the one section. What am I doing wrong?
CSS:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #12295B;
margin: 5px 0px 5px 0px;
text-align: left;
}
img.left {
position: relative;
float: left;
}
.clear {
clear: left;
}
#contatiner {
width: 800px;
border: solid 2px #12295B;
position:absolute;
left: 50%;
margin: 5px 0px 10px -400px;
padding: 0px;
}
#header {
margin: 0px;
height: 150px;
background-color: #A3B62C;
border-bottom: solid 2px #12295B;
}
#inside_issue {
border: 0px;
margin: 5px 5px 0px 0px;
width: 125px;
text-align: left;
float: right;
background-color: #A3B62C;
}
h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12pt;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #FFF;
text-align: center;
margin: 0px;
}
#inside_issue a {
line-height: 16pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
color: #12295B;
text-decoration: underline;
}
#content {
margin: 10px 0px 0px 0px;
}
#footer {
margin: 10px 0px 10px 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #000000;
text-align:center
}
HTML:
<body>
<div id="contatiner">
<div id="header">
<img class="left" src="images/header.jpg" alt="LRA Worldwide Internal Newsletter 12-2006" id="header_image" />
<div id="inside_issue">
<h1>
Inside This Issue:</h1>
<div class="InsideIssueText">
Message from Rob
<a href="leadership.html" target="_self">Leadership Team</a>
<a href="project_journal.html" target="_self">Project Journal</a>
<a href="company_news.html" target="_self">Company News</a>
<a href="new_business.html" target="_self">New Business</a><br />
<a href="LRAnews.html">LRA in the News</a>
<a href="personnel.html" target="_self">Personnel News</a>
<a href="suggestion.html" target="_self">Suggestions</a></div>
</div>
</div>
<div id="content">
<img class="left" src="images/message_header.jpg" alt="Company News" width="650" height="30">
<img class="clear" src="images/team_rush.jpg" alt="rob" width="150" height="145">
<p>Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. </p>
<p>Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues.
</p>
</div>
<div id="footer">
<a href="http://www.LRAWorldwide.com" target="_blank" class="LinkText">www.LRAworldwide.com</a> •
<a href="http://www.lraworldwide.net/newsletter/2006_08/index.html" target="_self" class="LinkText">
Last Month's Newsletter</a><br>
Copyright © 2006 • LRA Worldwide, Inc • All Rights Reserved</div>
</div>
</body>
I've got a container DIV and a DIV inside as a header container. My main container has a 2px border and I'd like the header DIV to have the same border at the bottom, but it is appearing above the DIV to the right instead of the bottom of the DIV ID "header".
Also, the whole DIV ID "header" should have a green background, but it's not working, it's only applying the green background to the one section. What am I doing wrong?
CSS:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #12295B;
margin: 5px 0px 5px 0px;
text-align: left;
}
img.left {
position: relative;
float: left;
}
.clear {
clear: left;
}
#contatiner {
width: 800px;
border: solid 2px #12295B;
position:absolute;
left: 50%;
margin: 5px 0px 10px -400px;
padding: 0px;
}
#header {
margin: 0px;
height: 150px;
background-color: #A3B62C;
border-bottom: solid 2px #12295B;
}
#inside_issue {
border: 0px;
margin: 5px 5px 0px 0px;
width: 125px;
text-align: left;
float: right;
background-color: #A3B62C;
}
h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12pt;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #FFF;
text-align: center;
margin: 0px;
}
#inside_issue a {
line-height: 16pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
color: #12295B;
text-decoration: underline;
}
#content {
margin: 10px 0px 0px 0px;
}
#footer {
margin: 10px 0px 10px 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #000000;
text-align:center
}
HTML:
<body>
<div id="contatiner">
<div id="header">
<img class="left" src="images/header.jpg" alt="LRA Worldwide Internal Newsletter 12-2006" id="header_image" />
<div id="inside_issue">
<h1>
Inside This Issue:</h1>
<div class="InsideIssueText">
Message from Rob
<a href="leadership.html" target="_self">Leadership Team</a>
<a href="project_journal.html" target="_self">Project Journal</a>
<a href="company_news.html" target="_self">Company News</a>
<a href="new_business.html" target="_self">New Business</a><br />
<a href="LRAnews.html">LRA in the News</a>
<a href="personnel.html" target="_self">Personnel News</a>
<a href="suggestion.html" target="_self">Suggestions</a></div>
</div>
</div>
<div id="content">
<img class="left" src="images/message_header.jpg" alt="Company News" width="650" height="30">
<img class="clear" src="images/team_rush.jpg" alt="rob" width="150" height="145">
<p>Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. </p>
<p>Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues. Text goes here and continues.
</p>
</div>
<div id="footer">
<a href="http://www.LRAWorldwide.com" target="_blank" class="LinkText">www.LRAworldwide.com</a> •
<a href="http://www.lraworldwide.net/newsletter/2006_08/index.html" target="_self" class="LinkText">
Last Month's Newsletter</a><br>
Copyright © 2006 • LRA Worldwide, Inc • All Rights Reserved</div>
</div>
</body>