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 8 of 8
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    36
    Thanks
    1
    Thanked 1 Time in 1 Post

    fixed background problem

    Hi there

    I have a site that works well in mozilla based browsers but not.

    I have a sort of div iframe with a fixed background and auto content scrollers ... which don't seem to even come close to happening in IE ..

    http://www.nautilus.ky/main.php
    css file
    Code:
    body{
    	background: url(images/bg_grad.png) repeat-x;
    	text-align: center;
    	font-family: verdana;
    	font-size: small;
    }
    #splash{
      background: url(images/home.jpg) no-repeat;
      width: 750px;
      height: 450px;
      margin: 53px auto 0 auto;
      position: relative;
      text-align: left;
    }
    #splash #arrow{
      position: absolute;
      height: 43px;
      width: 155px;
      top: 330px;
      right: 38px;  
    }
    #splash #text{
      background: url(images/textbox_splash.png) no-repeat;
      position: absolute;
      height: 106px;
      width: 311px;
      top: 110px;
      font-weight: bold;
      left: 48px;
      color: #fff;
    }
    
    #splash #text p.man{
      padding: 17px 11px 8px 11px;
      margin:0;
      font-size: 110%;
      color: #FFFFCC;
    }
    #splash #text p.luxury{
      padding: 0px 15px;
      line-height: 1.5em;
      margin:0;
      font-size: 90%;
    }
    #splash #nav{
      position: absolute;
      top: -33px;
      left: 400px;
      
    }
    /*  
    Theme Name: Barra Style
    Theme URI: http://visiblebits.com
    Description: Stylesheet for Barra
    Version: 1.0
    Author: Jon Buda of VisibleBits
    Author URI: http://www.visiblebits.com/
    */
    
    a img{
      border:0;
      padding:0;
    }
    a{
      color: #f3e29a;
    }
    a:hover{
      color: #fff;
      text-decoration: none;
    }
    h2,h1{
      color: #f3e29a;
      font-size: 120%;
    }
    h1{
      position: absolute;
      top: 34px;
      _top: 45px;
      left: 200px;
      width: 200px;
    }
    #main{
      background: url(images/home.jpg) no-repeat;
      width: 750px;
      height: 450px;
      margin: 53px auto 0 auto;
      position: relative;
      text-align: left;
    }
    #main #nav{
      position: absolute;
      top: -33px;
      left: 400px;
      
    }
    #main #text{
      background: url(images/textbox_main.png) no-repeat;
      position: absolute;
      height: 300px;
      width: 670px;
      margin: 5px 5px 5px 5px;
      font-weight: bold;
      left: 48px;
      color: #fff;
      overflow: auto;
      top: 110px;
      padding: 0px 10px 0px 10px;
    }
    
    #main #text p.header{
      padding: 17px 11px 8px 11px;
      margin:0;
      font-size: 110%;
      color: #FFFFCC;
    }
    #splash #text p.content{
      padding: 0px 15px;
      line-height: 1.5em;
      margin:0;
      font-size: 90%;
    }
    /*- Menu Tabs F--------------------------- */
    
        #tabsF {
          float:right;
          width:100%;
          font-size:93%;
          line-height:normal;
    	  border-bottom:0px solid #666;
          }
        #tabsF ul {
    	  margin:0;
    	  padding:10px 10px 0 50px;
    	  list-style:none;
          }
        #tabsF li {
          display:inline;
          margin:0;
          padding:0;
          }
        #tabsF a {
          float:left;
          background:url("images/tableftF.gif") no-repeat left top;
          margin:0;
          padding:0 5px 0 4px;
          text-decoration:none;
          }
        #tabsF a span {
          float:left;
          display:block;
          background:url("images/tabrightF.gif") no-repeat right top;
          padding:5px 15px 4px 6px;
          color:#666;
          }
        /* Commented Backslash Hack hides rule from IE5-Mac \*/
        #tabsF a span {float:none;}
        /* End IE5-Mac hack */
        #tabsF a:hover span {
          color:#FFF;
          }
        #tabsF a:hover {
          background-position:0% -42px;
          }
        #tabsF a:hover span {
          background-position:100% -42px;
          }
    .photoleft {
    	text-align:center;
    	float:left;
    	padding:4px 4px 4px 4px;
    	margin-right: 5px;
    	margin-bottom: 5px;
    	border: 1px solid #000;
    	background-color:#FFFFFF;
    }
    .photoright {
    	text-align:center;
    	float:right;
    	padding:4px 4px 4px 4px;
    	margin-left: 5px;
    	margin-bottom: 5px;
    	border: 1px solid #000;
    	background-color:#FFFFFF;
    }
    #main #text p.toursh{
      padding: 17px 11px 8px 11px;
      margin:0;
      font-size: 150%;
      color:#990066;
      text-indent: 80px;
    }
    #main #text p.tourslist{
      padding: 0px 15px;
      line-height: 1.5em;
      margin:0;
      font-size: 90%;
      color:#FFFFCC;
    }
    #main #text p.toursdetails{
      padding: 0px 15px 10px 0px;
      line-height: 1.2em;
      margin:0;
      font-size: 80%;
      text-indent: 20px;
    }
    html file
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Nautilus Cayman Luxury Tours</title>
    <link href="nauti2008.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id="main">
      <div id="nav">
        <div id="tabsF">
      <ul>
        <li><a href="main.php" title="Nautilus Home"><span>Home</span></a></li>
        <li><a href="tours.php" title="Nautilus Tours"><span>Tours</span></a></li>
        <li><a href="form/contact.php" title="Contact Nautilus"><span>Contact</span></a></li>
      </ul>
    </div></div>
      <div id="text">
    <br />
    		<p>If you would like to contact us to book a trip or find out any more information please feel free to email us at info@nautilus.ky or use the convenient form below.
    		
    		  <!-- Begin Freedback Form -->
              <!-- DO NOT EDIT YOUR FORM HERE, PLEASE LOG IN AND EDIT AT FREEDBACK.COM -->
                    </p>
    		<form enctype="multipart/form-data" method="post" action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
    	<div>
    		<input type="hidden" name="acctid" id="acctid" value="8gqxq8xc37lg7iox" />
    		<input type="hidden" name="formid" id="formid" value="342601" />
    		<input type="hidden" name="required_vars" id="required_vars" value="name,email,field-4eab9a7a94cc7be" />
    	</div>
    	<table cellspacing="5" cellpadding="5" border="0">
    		<tr>
    			<td valign="top">
    				<strong>Name:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="name" id="name" size="40" value="" />
    				
    			</td>
    		</tr>
    		<tr>
    			<td valign="top">
    				<strong>Email Address:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="email" id="email" size="40" value="" />
    				
    			</td>
    		</tr>
    		<tr>
    			<td valign="top">
    				<strong>What would you like to know ?</strong>
    			</td>
    			<td valign="top">
    				<textarea name="field-4eab9a7a94cc7be" id="field-4eab9a7a94cc7be" rows="6" cols="40"></textarea>
    				
    			</td>
    		</tr>
    		<tr>
    			<td colspan="2" align="center">
    				<input type="submit" value=" Submit Form " />
    			</td>
    		</tr>
    	</table>
    </form>
    </b></font></center>
    <!-- End Freedback Form -->
    
    alternatively if you would like to hear a friendly voice please call us at +1 (345) 945 1355
    
      </div>
    </div>
    </body>
    </html>
    any help would be loved !

    Giles

  • #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 caymaniac,
    IE6 is such a pain. It doesn't do .png well so you see the corners and opacity of your image is wrong.
    It also messes up background fixed... see this page: http://pmob.co.uk/faqcss/tutorial06/index.htm
    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
    New Coder
    Join Date
    Dec 2006
    Posts
    36
    Thanks
    1
    Thanked 1 Time in 1 Post
    Great . thanks for that link .. i will try and work through it .. i will probably need a seperate IE style sheet i imagine ..

    ... but i was actually testing in IE7

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hmm.

    IE7 appears to be working just the same as IE6 here. (except for the fact that the .png 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

  • #5
    New Coder
    Join Date
    Dec 2006
    Posts
    36
    Thanks
    1
    Thanked 1 Time in 1 Post
    yes i got that .. i may apply the javascript fix for IE6 png ... will see if i can be bothered once i fix the background problem ... this always happens to me !

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by caymaniac View Post
    yes i got that .. i may apply the javascript fix for IE6 png ...

    That works for .png images, not for .png backgrounds.
    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

  • #7
    Regular Coder
    Join Date
    Jan 2008
    Location
    Willow Grove, PA
    Posts
    169
    Thanks
    1
    Thanked 27 Times in 27 Posts
    http://www.twinhelix.com/css/iepngfix/

    This will fix IE6 png issues. You can use them on png backgrounds as well as regular images.

    Make sure you read through the docs cause there are some gotchas. Such as, if you use it to fix a png on a bg, you can't use the css position property with an a tag on top of it. You also can't use the background-position property. And others.

  • #8
    New Coder
    Join Date
    Dec 2006
    Posts
    36
    Thanks
    1
    Thanked 1 Time in 1 Post
    Ok lets ignore IE6 ... i can't even get this image to stay where it is meant to in IE7 .. which is meant to accept the fixed property ...
    Code:
    #main #text{
      background: url(images/textbox_main.png) no-repeat fixed;
      background-image: url(images/textbox_main.png) no-repeat fixed;
      background-attachment: fixed;
      position: absolute;
      height: 300px;
      width: 670px;
      margin: 5px 5px 5px 5px;
      font-weight: bold;
      left: 48px;
      color: #fff;
      overflow: auto;
      top: 110px;
      padding: 0px 10px 0px 10px;
    }
    why would ie 7 ignore that .. i have tried everything !


  •  

    Posting Permissions

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