rexolio2008
Technical User
I'm still learning CSS and I've ran into some margin/padding issues that I can't figure out for the following page:
In IE7, everything looks fine. In FF3 and Safari, it does not.
Specifically, there is too much space between div.slogan and div.content. In IE, the white background of #content begins just underneath the sun, which is how I want it. In FF and Safari, it's further down. Here's the CSS:
Additionally, at the bottom there are 3 div's side by side separated by a dotted divider. In IE, it looks fine - there is a 15px border around #bottom. But in FF and S, the right side is too thin - something isn't right. Here's the code for that:
Appreciate any input!
In IE7, everything looks fine. In FF3 and Safari, it does not.
Specifically, there is too much space between div.slogan and div.content. In IE, the white background of #content begins just underneath the sun, which is how I want it. In FF and Safari, it's further down. Here's the CSS:
Code:
body {
background-color:#040300;
background-image:url('../images/bg-page.jpg');
background-repeat:repeat-x;
background-position:top center;
font-family:Trebuchet MS, Verdana, Helvetica, sans-serif;
font-size:14px;
color:#000;
text-align:center;
}
p {
font-family:Trebuchet MS, Verdana, Helvetica, sans-serif;
font-size:14px;
color:#000;
text-align:left;
}
#wrapper {
width:930px;
margin: 0 auto;
padding:0px;
text-align:left;
overflow: hidden;
}
#wrapper #logo {
float:left;
width:330px;
height:110px;
}
#wrapper #topad {
width:600px;
height:110px;
float:right;
padding-top:25px;
text-align:center;
}
#wrapper #slogan {
clear:left;
float:left;
width:930px;
height:54px;
}
#wrapper #content {
clear:left;
float:left;
width:930px;
margin:0px;
padding:15px;
background-color:#fff;
}
<div id="wrapper">
<div id="logo"><a href="index.asp"><img src="images/space.gif" width="315" height="110" alt="Sunshine Artist" /></a></div>
<div id="topad"><a href="#"><img src="ads/temp468x60.gif" width="468" height="60" alt="" /></a></div>
<div id="slogan"></div>
<div id="content">..... abbreviated
Additionally, at the bottom there are 3 div's side by side separated by a dotted divider. In IE, it looks fine - there is a 15px border around #bottom. But in FF and S, the right side is too thin - something isn't right. Here's the code for that:
Code:
#bottom {
clear:both;
float:left;
width:900px;
height:82px;
background-color:#716914;
padding:5px;
overflow:hidden;
}
#bottom img {
margin:5px 10px 5px 5px;
}
#bottom #section1 {
clear:both;
float:left;
width:315px;
height:82px;
padding-left:5px;
background-image:url('../images/icon_divider.png');
background-repeat:repeat-y;
background-position:right center;
display:block;
}
#section1 #section1content {
float:left;
width:290px;
}
#bottom #section3 {
float:right;
width:285px;
height:82px;
padding:0px 5px;
display:block;
}
#bottom #section2 {
float:left;
width:auto;
height:82px;
padding-left:5px;
background-image:url('../images/icon_divider.png');
background-repeat:repeat-y;
background-position:right center;
display:block;
}
#section2 #section2content {
float:left;
width:280px;
}
<div id="bottom">
<div id="section1">
<div id="section1content"><a href="#"><img src="images/icon_fastaudit.png" alt="Art & Craft Show Audits" align="left" /></a><h3>FastAudit</h3><br/>
<p><a href="#">Rate a show or festival. Let our readers know about your experience with an event.</a></p>
</div>
</div>
<div id="section3"><a href="#"><img src="images/icon_subscribers-only.png" alt="Subscribers Only" align="left"></a><h3>Subscribers Only</h3>
<p><a href="#">Access article archives, forums and show promoter information, including applications.</a></p>
</div>
<div id="section2">
<div id="section2content"><a href="#"><img src="images/icon_subscribe.png" alt="Subscribe to Sunshine Artist today" align="left" /></a><h3>Subscribe</h3>
<p><a href="#">Receive monthly issues of America's premier art festival & show magazine.</a></p>
</div>
</div>
</div>
Appreciate any input!