Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    England
    Posts
    132
    Thanks
    24
    Thanked 0 Times in 0 Posts

    Question Banner Align Problem and SWF Not Displaying in FF

    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 :

    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 :

    Code:
    * {
    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;
    }

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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 -
    Code:
    #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 works.



    ...
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Location
    England
    Posts
    132
    Thanks
    24
    Thanked 0 Times in 0 Posts
    Thanks. I tried that but the problem is when the banner aligns in Firefox it's out of whack in IE7.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •