DonnaL
01-08-2008, 05:11 AM
I am relatively new to css and divs so bare with me please!
On my page there is a container which surrounds a logo, header, content (iframe) and a footer. The footer seems to be covered by the iframe. If I put anything else in the iframe div the footer shows up.
Here are snippets of my code:
<style type="text/css">
<!--
body,td,th {
font-family:Verdana, Helvetica, Arial, sans-serif;
colour:#feff7e;
font-size: 20;
text-align: center;
}
#container{
width: 800px;
border: 2px solid #6f5d24;
background-color: #feff7e;
margin-top: 30px;
margin-right:auto;
margin-left:auto;
}
#mainFrameDiv {
margin-right:auto;
margin-left:auto;
}
#header {
margin-bottom:0;
}
#footer {
clear: both;
padding: 0;
margin-top: 0;
background-color: #AF8E0B;
height: 65px;
}
-->
</style>
<body>
<div id="container">
<div id="cottageBabiesLogo">
<img src="../lone_marigold_wide-1.jpg"
width="800" height="250">
</div>
<div id="header">
<p class="welcome">Welcome to Cottage Babies!</p>
</div>
<div id="mainFrameDiv">
<iframe name=mainFrame scrolling='no' width='700' height='550'
align='center' frameborder=0 src="AboutMe.html">
</div>
<div id="footer">
<a href="mailto:cottagebabies@earthlink.net">
Contact Cottage Babies</a>
</div>
</div>
</body>
Any thoughts? I have been staring at this a while and fiddling around with different margins, etc. Help!
Thanks in advance.
Wrapped the code in
tags
On my page there is a container which surrounds a logo, header, content (iframe) and a footer. The footer seems to be covered by the iframe. If I put anything else in the iframe div the footer shows up.
Here are snippets of my code:
<style type="text/css">
<!--
body,td,th {
font-family:Verdana, Helvetica, Arial, sans-serif;
colour:#feff7e;
font-size: 20;
text-align: center;
}
#container{
width: 800px;
border: 2px solid #6f5d24;
background-color: #feff7e;
margin-top: 30px;
margin-right:auto;
margin-left:auto;
}
#mainFrameDiv {
margin-right:auto;
margin-left:auto;
}
#header {
margin-bottom:0;
}
#footer {
clear: both;
padding: 0;
margin-top: 0;
background-color: #AF8E0B;
height: 65px;
}
-->
</style>
<body>
<div id="container">
<div id="cottageBabiesLogo">
<img src="../lone_marigold_wide-1.jpg"
width="800" height="250">
</div>
<div id="header">
<p class="welcome">Welcome to Cottage Babies!</p>
</div>
<div id="mainFrameDiv">
<iframe name=mainFrame scrolling='no' width='700' height='550'
align='center' frameborder=0 src="AboutMe.html">
</div>
<div id="footer">
<a href="mailto:cottagebabies@earthlink.net">
Contact Cottage Babies</a>
</div>
</div>
</body>
Any thoughts? I have been staring at this a while and fiddling around with different margins, etc. Help!
Thanks in advance.
Wrapped the code in
tags