...

View Full Version : Banner Align Problem and SWF Not Displaying in FF



Mehdi72
04-11-2009, 03:19 AM
First of all the site does not validate because of the contact form and paypal link. The pages display fine in IE7 but not in Firefox.

http://expressminibuses.com/Services.html

The relevant code :



<object type="application/x-shockwave-flash" data="Images/globe.swf" width="230" height="167">
<param name="movie" value="Images/globe.swf" />
<img src="Images/globe.swf" width="230" height="167" alt="banner" />
</object>

<div
style="
top: 50px;
left: 320px;
position: absolute;
z-index: 1;
visibility: show;">
<a href="http://expressminibuses.com">
<map name="FPMap0" id="FPMap0">
<area alt="Gallery" shape="rect" coords="408, 87, 472, 116" href="Gallery.html" />
<area alt="Services" shape="rect" coords="172, 87, 247, 117" href="Services.html" />
<area alt="Make A Payment" shape="rect" coords="259, 87, 393, 117" href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=R77YVPK7HY7E8&lc=GB&button_subtype=services&currency_code=GBP&bn=PP%2dBuyNowBF%3abtn_paynow_SM%2egif%3aNonHosted" />
<area alt="Request A Quote" shape="rect" coords="26, 87, 159, 118" href="Request_Quote.html" />
<area alt="expressminibuses.com" shape="rect" coords="4, 6, 575, 79" href="http://expressminibuses.com" />
<area alt="e-mail" shape="rect" coords="487, 87, 546, 116" href="mailto:enquiries@expressminibuses.com" />

</map>
<img alt="Express Travel Minibus Hire" src="Images/Logo_1.jpg" width="580" height="120" longdesc="Express Travel Minibus Hire" usemap="#FPMap0" />
</a>
</div>

And the stylesheet :



* {
margin: 0;
padding: 0;
}

ul {
list-style: inside;
}

body {
background-color: #008001;
color: #000000;
font-family: font-family: Tahoma, Helvetica, Lucida Sans, Trebuchet, sans-serif, Geneva, Arial, ;
font-size: 17px;
line-height: 19px;
}

a {
color: #000000;
}

p {
margin-bottom: 8px;
}

img {
border: 0px;
}

#center{
margin-top:10px;
margin-left:35px;
height:20px;
}

#center2{
margin-top:10px;
margin-left:70px;
height:20px;
}

#center3{
margin-top:10px;
margin-left:120px;
height:20px;
}

#container {
overflow:hidden;
background-color: #ffffff;
width: 800px;
padding: 30px;
margin: 10px auto 10px auto;
border: 1px solid #999999;
}

#header {
margin-top: 30px;
margin-bottom: 24px;
}

#header a {
margin-right: 25px;
color: #2b2b2b;
text-decoration: none;
position: relative; top: -9px; left: 8px;
}

#header a:hover {
text-decoration: underline;
}

#content {
margin-left: 30px;
width: 800px;
}

#links {
margin-left: 100px;
word-spacing: 90px;
font-size: 13px;
}

#footer {
clear:both;
border-top:1px solid;
color: #626262;
padding-top: 20px;
margin-bottom: -20px;
}

#footer p {
font-size: 12px;
width: 800px;
}

#line {
clear:both;
border-top:1px solid;
color: #000;
padding-top: 20px;
margin-bottom: -20px;
}

Excavator
04-11-2009, 03:38 AM
Hello Mehdi72,
Setting #container to relative position is a start. That way your absolute positioned elements are relative to the container instead of the body of the document.
Like this -

#container {
position: relative;
overflow:hidden;
background-color: #ffffff;
width: 800px;
padding: 30px;
margin: 10px auto 10px auto;
border: 1px solid #999999;
}
Adjust your positioning to get it back inside the header then... Keep in mind how the box model (http://www.w3.org/TR/CSS2/box.html)works.



...

Mehdi72
04-11-2009, 12:14 PM
Thanks. I tried that but the problem is when the banner aligns in Firefox it's out of whack in IE7.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum