cartotech81
08-06-2012, 01:06 AM
I am having problems with gaps between different divs and iframes. There is also a problem with my background not covering the entire page. The only time i could get the background to show across the entire page is by loading it into the body which then puts the background over top of the header background. Any help would be appreciated.
Here is my CSS
html {
border: 0px;
margin: 0px;
padding: 0px;
}
body {
border: 0px;
margin: 0px;
padding: 0px;
}
#footer {
width: 100%;
float: bottom;
clear: both;
background: url(../images/bg03.jpg);
position: relative;
top: 15px;
}
#container {
width: 100%;
background: url(../images/contentright.png);
}
#content {
width: 100%;
float: left;
background: url(../images/contentright.png);
position: relative;
margin-top:-1px;
}
#header {
background: url(../images/bg01.jpg);
width: 100%;
height: 120px;
border: 0px;
border-style: no;
float: none;
margin: 0px;
}
#header iframe {
display: block;
margin: none;
padding: none;
}
/* CSS For Menu */
.solidblockmenu {
margin: 0;
padding: 0;
width: 100%;
overflow: hidden;
margin-bottom: 10px;
border: 1px solid gray;
border-top-width:0;
background: black url(../images/blockdefault.gif) center center repeat-x;
}
.solidblockmenu li {
display: inline;
}
.solidblockmenu li a{
float: left;
color: white;
font: bold 13px Tahoma;
padding: 9px 11px;
text-decoration: none;
border-right: 1px solid gray;
}
.solidblockmenu li a:visited {
color: white;
}
.solidblockmenu li a:hover, .solidblockmenu li a.current {
color: white !important;
background: black url(../images/blockactive.gif) center center repeat-x;
}
#menu {
width: 100%;
border: 2px;
border-color: red;
margin: 0;
padding: 0;
overflow: hidden;
}
#menu iframe {
border: none;
width: 100%;
height: 45px;
margin-top: none;
padding: none;
display: block;
overflow: hidden;
}
#menuBody {
position: relative;
border: none;
width: 100%;
height: 45px;
margin-top: none;
padding: none;
display: block;
margin-bottom: -20px;
}
/* Left Content DIV Style */
#contentleft {
float: left;
width: 70%;
text-align: left;
margin-top: 25px;
margin-left: 25px;
background: url(../images/bg03.jpg);
box-shadow: 7px 7px 5px #888888;
border-radius: 5px;
}
#contentleft h1 {
text-align: center;
color: black;
}
#contentleft p {
font-family: "Myriad Pro", "Bookman Old Style", "Times New Roman", Times, Serif;
text-align: justify;
padding: 5px;
margin: 10px;
font-size: 15px;
}
#contentright {
position: absolute;
float: right;
margin-top: 25px;
text-align: center;
left: 75%;
width: 23%;
background: url(../images/bg03.jpg);
box-shadow: 7px 7px 5px #888888;
border-radius: 5px;
}
#contentright h2 {
text-align: center;
color: black;
}
#contentright li {
margin-left: 25px;
margin-right: 10px;
text-align: left;
color: black;
text-align: justified;
}
#contentright p {
text-align: justify;
padding: 5px;
font-size: 12px;
}
#tblSchedule {
margin: 2px;
text-align: justify;
}
#colHead1 {
width: 30%;
text-align: center;
}
#colHead2 {
width: auto;
text-align: center;
}
#col1 {
width: 30%;
text-align: center;
border-right:thick single black;
font-size: 12px;
margin: 10px;
}
#col2 {
width: auto;
text-align: left;
font-size: 13 px;
}
And my HTML
<!DOCTYPE html
PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Show-Me Shrimp Farms</title>
<link rel="Stylesheet" href="./style/shrimpStyle.css" type="text/css" media="screen">
</head>
<body>
<div id="container">
<div id="header">
<iframe name="header" id="header"
src="./header.html"
scrolling="no">
</iframe>
</div>
<div id="menu">
<iframe name="menu"
src="./menu.html"
scrolling="no">
</iframe>
</div>
<div id="content">
<div id="contentleft">
<h1>2012 ShrimpFest</h1>
<p>The 10th annual Shrimpfest is a celebration that marks the end of the shrimp growing season. Education and entertainment merge in a rural farm environment, providing an astounding experience for all ages.</p>
<p>Learn the basics of aquaculture and the phases of producing the fresh water prawns. Pond-side sales of the prawns begin around 9 a.m., continuing until we are sold out. Prawns are $10 per pound, heads-on. Free ice with porchase. Shrimp plate-dinners:$9. Soda, water, chips and ice available for purchase.</p>
<p>Children enjoy the free, inflatable jump-house and pony rides. Activities include, among other activities: free tours of the shrimp farm; washer toss; volleyball, horseshoe pitching; wine tasting (must show ID); musical entertainment with the amazing DJ and stand-up comedian, Scott Stoner, from Dallas, Texas; and karaoke for those who like to share their talents.</p>
<p>Held rain or shine at the Show-Me Shrimp Farm. Camping ok, Friday and Saturday nights. Bring your lawn chairs and pop-up shelter. Spend a day in a relaxing atmosphere in the middle of nowhere.</p>
</div>
<div id="contentright">
<h2>Schedule of Events</h2>
<table id="tblSchedule">
<tr>
<th id="colHead1">Time</th>
<th id="colHead2">Description</th>
</tr>
<tr>
<td id="col1">3:30 AM</td>
<td id="col2"> Pray to the Shrimp Gods for a bountiful harvest. (Pond takes around 7 hours to drain.</td>
</tr>
<tr>
<td id="col1">10:00 AM</td>
<td id="col2">Shrimp Available For Purchase</td>
</tr>
<tr>
<td id="col1">11 AM - 12 PM</td>
<td id="col2">Lots of Food, Music, Fun</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
© Show-Me Shrimp Farms
</div>
</body>
</html>
Here is my CSS
html {
border: 0px;
margin: 0px;
padding: 0px;
}
body {
border: 0px;
margin: 0px;
padding: 0px;
}
#footer {
width: 100%;
float: bottom;
clear: both;
background: url(../images/bg03.jpg);
position: relative;
top: 15px;
}
#container {
width: 100%;
background: url(../images/contentright.png);
}
#content {
width: 100%;
float: left;
background: url(../images/contentright.png);
position: relative;
margin-top:-1px;
}
#header {
background: url(../images/bg01.jpg);
width: 100%;
height: 120px;
border: 0px;
border-style: no;
float: none;
margin: 0px;
}
#header iframe {
display: block;
margin: none;
padding: none;
}
/* CSS For Menu */
.solidblockmenu {
margin: 0;
padding: 0;
width: 100%;
overflow: hidden;
margin-bottom: 10px;
border: 1px solid gray;
border-top-width:0;
background: black url(../images/blockdefault.gif) center center repeat-x;
}
.solidblockmenu li {
display: inline;
}
.solidblockmenu li a{
float: left;
color: white;
font: bold 13px Tahoma;
padding: 9px 11px;
text-decoration: none;
border-right: 1px solid gray;
}
.solidblockmenu li a:visited {
color: white;
}
.solidblockmenu li a:hover, .solidblockmenu li a.current {
color: white !important;
background: black url(../images/blockactive.gif) center center repeat-x;
}
#menu {
width: 100%;
border: 2px;
border-color: red;
margin: 0;
padding: 0;
overflow: hidden;
}
#menu iframe {
border: none;
width: 100%;
height: 45px;
margin-top: none;
padding: none;
display: block;
overflow: hidden;
}
#menuBody {
position: relative;
border: none;
width: 100%;
height: 45px;
margin-top: none;
padding: none;
display: block;
margin-bottom: -20px;
}
/* Left Content DIV Style */
#contentleft {
float: left;
width: 70%;
text-align: left;
margin-top: 25px;
margin-left: 25px;
background: url(../images/bg03.jpg);
box-shadow: 7px 7px 5px #888888;
border-radius: 5px;
}
#contentleft h1 {
text-align: center;
color: black;
}
#contentleft p {
font-family: "Myriad Pro", "Bookman Old Style", "Times New Roman", Times, Serif;
text-align: justify;
padding: 5px;
margin: 10px;
font-size: 15px;
}
#contentright {
position: absolute;
float: right;
margin-top: 25px;
text-align: center;
left: 75%;
width: 23%;
background: url(../images/bg03.jpg);
box-shadow: 7px 7px 5px #888888;
border-radius: 5px;
}
#contentright h2 {
text-align: center;
color: black;
}
#contentright li {
margin-left: 25px;
margin-right: 10px;
text-align: left;
color: black;
text-align: justified;
}
#contentright p {
text-align: justify;
padding: 5px;
font-size: 12px;
}
#tblSchedule {
margin: 2px;
text-align: justify;
}
#colHead1 {
width: 30%;
text-align: center;
}
#colHead2 {
width: auto;
text-align: center;
}
#col1 {
width: 30%;
text-align: center;
border-right:thick single black;
font-size: 12px;
margin: 10px;
}
#col2 {
width: auto;
text-align: left;
font-size: 13 px;
}
And my HTML
<!DOCTYPE html
PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Show-Me Shrimp Farms</title>
<link rel="Stylesheet" href="./style/shrimpStyle.css" type="text/css" media="screen">
</head>
<body>
<div id="container">
<div id="header">
<iframe name="header" id="header"
src="./header.html"
scrolling="no">
</iframe>
</div>
<div id="menu">
<iframe name="menu"
src="./menu.html"
scrolling="no">
</iframe>
</div>
<div id="content">
<div id="contentleft">
<h1>2012 ShrimpFest</h1>
<p>The 10th annual Shrimpfest is a celebration that marks the end of the shrimp growing season. Education and entertainment merge in a rural farm environment, providing an astounding experience for all ages.</p>
<p>Learn the basics of aquaculture and the phases of producing the fresh water prawns. Pond-side sales of the prawns begin around 9 a.m., continuing until we are sold out. Prawns are $10 per pound, heads-on. Free ice with porchase. Shrimp plate-dinners:$9. Soda, water, chips and ice available for purchase.</p>
<p>Children enjoy the free, inflatable jump-house and pony rides. Activities include, among other activities: free tours of the shrimp farm; washer toss; volleyball, horseshoe pitching; wine tasting (must show ID); musical entertainment with the amazing DJ and stand-up comedian, Scott Stoner, from Dallas, Texas; and karaoke for those who like to share their talents.</p>
<p>Held rain or shine at the Show-Me Shrimp Farm. Camping ok, Friday and Saturday nights. Bring your lawn chairs and pop-up shelter. Spend a day in a relaxing atmosphere in the middle of nowhere.</p>
</div>
<div id="contentright">
<h2>Schedule of Events</h2>
<table id="tblSchedule">
<tr>
<th id="colHead1">Time</th>
<th id="colHead2">Description</th>
</tr>
<tr>
<td id="col1">3:30 AM</td>
<td id="col2"> Pray to the Shrimp Gods for a bountiful harvest. (Pond takes around 7 hours to drain.</td>
</tr>
<tr>
<td id="col1">10:00 AM</td>
<td id="col2">Shrimp Available For Purchase</td>
</tr>
<tr>
<td id="col1">11 AM - 12 PM</td>
<td id="col2">Lots of Food, Music, Fun</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
© Show-Me Shrimp Farms
</div>
</body>
</html>