Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
wrapper background not showing up in firefox
Old 05-12-2009, 08:07 PM wrapper background not showing up in firefox
Webmaster Talker

Posts: 611
Trades: 0
hi , my background image is not showing up in firefox. the image is
compressed_background.gif inside "container" div.any help greatly appreciated, i definitely couldnt figure this one out. so any help appreciated!
thanks. derek

here is the page im talking about

http://derekvanderven.com/flower_events/home.html

here is the css to the page

Code:
@charset "utf-8";
/* CSS Document */

 

body {
    margin: 0;  /* clear for browsers */
    padding: 0;
    background-color: #ffffff;
    font-family:  "Times New Roman"  Times, Serif;
}

#container {
 
     background-image: url(compressed_background.gif);
     background-repeat: no-repeat;
    margin:20px auto 0 auto;
    width: 750px;
     
}    

#navigation {
      margin: 0 auto 0 auto;
      width: 750px;
     height: 27px;
}     

#homelink {
      margin: 20px auto 0 auto;
      width: 281px;
      height: 60px;
}
      
#contentblock {
    float: left;
    width: 280px;
    height: 325px;
    margin-top: 65px;
    margin-left: 65px;
    overflow-x: hidden;
     
}          

#flashblock {
    float: right;
    width: 280px;
    height: 325px;
    margin-top: 65px;
    margin-right: 65px;
     
}         


#textblock {
    float:right
    width: 200px;
    height: 325px;
    margin-top: 65px;
    margin-left: 0px;
    width: 275px;
    float: right;
    margin-right: 50px;
     
        }
        
        #textblock p {
        text-indent: 10px;
        }

#scrolltextblock {
    float: right;
    width: 280px;
    height: 325px;
    margin-top: 65px;
    margin-right: 65px;
    overflow: scroll;
     overflow-x: hidden;
}    

#scrolltextblock p{
text-indent: 10px;
}
      
#footer {
    float: left; 
    margin-top: 50px;
     margin-left: 160px;
    width: 400px;
    height: 25px;
    text-align: center;
     color: #333333;
     font-weight: bold;
    
}     
/*************************************************************************/
/*****************************************DROPDOWN MENU CODE********/

/* 
Title: Vertical CSS menu with a behavior file.
Author: Stefan Vervoort
Blog: http://www.divitodesign.com/blog/ 
Article: http://www.divitodesign.com/blog/2008/01/vertical-css-menu-with-a-behavior-file/
*/

body {
    behavior: url(csshover.htc);
}    
 
p a {
     color: #887388;     /* made the link text red again */
    text-decoration:none;!important;
    font-size:20px;                            /*change size of nav and dropdown text*/
    font-family:Arial, Helvetica, sans-serif;
}

a{
    color:#fff;
    text-decoration:none;       /* text color */
    }
p a:hover{    text-decoration: none!important;
}

ul#nav {
    list-style: none;
    padding: 0;
    margin: 0;
}


ul#nav li a {
    display: block;
    font-weight: bold;        /*background color */
    padding: 2px 4px;
    background-color: #887388;
     
}

ul#nav li a:hover{
color:#fff; /* text hover */
background-color: #887388;
} 
    
ul#nav li {
    float: left;
    position: relative;
    width: 105px;            /* change width of boxes */
    text-align: center;
    margin-right:0px;
    border:1px solid #ccc;
    background-color: #887388;

}

ul#nav li.current a{
    background-color:  #887388;    /* fixed the home red button to gray */
    }

ul#nav li.current a:hover{
    background:#887388;         /* background hover */
    }

li ul {
    display: none;
    position: absolute;
    width:120px;         /* width of dropdown menu */
    top: 0;
    left: 0;
    font-weight: normal;
    padding: 1px 0 10px 0;
    margin-left:-1px;
}

ul#nav li ul.sub li{
    border-width:0 1px 1px 1px!important;
}

ul#nav li ul.sub li a{
    font-weight: normal!important;    
}
li>ul {
    top: auto;
    left: auto;
}

li:hover ul, li.over ul {
    display: block;
}

 ul.sub {      /* got rid of bullets in firefox */
 
     list-style: none ;
}    

/******************************************************************************************************/
/*****************************************************************************************************/
/********************IMAGE GALLERY STYLE CODE************************************************/

 div.img
  {
    margin: 2px;
    /*border: 1px solid #0000ff;*/
  height: 80px;
    width: 80px;
    float: left;
    text-align: center;
  
  }  

div.img img
  {
  width= 65px;
  height= 65px;
  display: inline;
  margin: 3px;
  /*border: 1px solid #ffffff;*/
  } 

div.img a:hover img
  {
  border: 1px solid #ffffff;
  }

div.desc
  {
    float:none;
    margin-left: 37px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    width: 150px;
    margin-top: 30px;
    margin-right: auto;
    margin-bottom: 0px;
  
  }
    
  
  #img_container {
    float: left;
    margin-top: 60px;
    margin-left: 50px;
    width: 300px;
    height: 325px;
    padding-top: 100px;
    padding-left: 25px;
  
  
  }
and here is the html for the page

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<link href="flowers.css" rel="stylesheet" type="text/css">
<html xmlns="http://www.w3.org/1999/xhtml"><style type="text/css">
.style1 {color: #666666}
</style><head>
<!--[if lt IE 7]>
<link href="iefixes.css" rel="stylesheet" type="text/css" /> <![endif]--> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>flower events home</title>
</head>

<body>

    <div id= "container"> 
    <div id= "navigation">  
          
          <!-- START OF DROPDOWN MENU -->
          
          <ul id="nav">
                   <li class="current"><a href="#" title="Red Flowers">Red Flowers</a>   
                  <ul class="sub">
         <li><a href="daisies.html" title="daisies">Daisies</a></li>
         <li><a href="tulips.html" title="tulips">Tulips</a></li></ul>
                 <!-- navigation headers -->
                
               
      </li>
         
        <li class="current"><a href="yellow.html" title="Yellow Flowers">Yellow </a>    <!-- navigation headers -->
      </li>
      
      
      <li class="current"><a href="pink.html" title="pink flowers">Pink </a>    <!-- navigation headers -->
      </li>
      
      
      <li class="current"><a href="purple.html" title="purple flowers">Purple </a>    <!-- navigation headers -->
      </li>
      
      
      <li class="current"><a href="orange.html" title="orange flowers">Orange </a>    <!-- navigation headers -->
      </li>
      
      <li class="current"><a href="testimonials.html" title="testimonials">Testimonials</a>    <!-- navigation headers -->
      </li>
      
      <li class="current"><a href="contact.html" title="contact us">Contact Us</a>    <!-- navigation headers -->
          </li>
       </ul>    <!--end of nav--><!-- END OF DROPDOWN MENU-->
          </div> <!--end of navigation-->
        
        
        <div id="homelink"><a href="home.html"><img src="home_link.gif" border="0" /></a> </div>
        
        <div id= "contentblock"> 

          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent  venenatis sapien ipsum, ut congue metus. Integer scelerisque sem at  velit pretium congue. Maecenas lectus sapien, consectetur non lobortis  nec, tempor eu leo. In ac dui ipsum, at semper nulla. Class aptent  taciti sociosqu ad litora torquent per conubia nostra, per inceptos  himenaeos. Nam eget nibh arcu. Aliquam sit amet ante dui. Nam magna  enim, vulputate quis pellentesque vel, tincidunt quis diam. Sed vitae  lobortis diam. Phasellus turpis turpis, venenatis id blandit sit amet,  malesuada a quam. Pellentesque congue ultrices dolor ut fermentum.  Quisque id dolor nec eros rutrum malesuada. </p>
      </div> <!-- end contentblock-->
       
<div id="flashblock" ><img src="new_flowers/Flores.gif" width="283"/></div>
<!-- end flashblock div -->
         <div class="style1" id="footer"> Website Design by Derekvanderven.com &copy; 2009</div>
</div> 
<!--end of container-->

 <!-- Start of StatCounter Code -->
  <script type="text/javascript">
sc_project=3569481; 
sc_invisible=1; 
sc_partition=39; 
sc_security="7e526e75"; 
  </script>

  
  <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script>

<p align="center"><a href="http://derekvanderven.com"></a>
<noscript><div class="statcounter"><a title="free hit counter" href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c40.statcounter.com/3569481/0/7e526e75/1/" alt="free hit counter" ></a></img></div></noscript>
<!-- End of StatCounter Code -->

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-4025495-1";
urchinTracker();
</script>
        </body>
</html>
silverglade is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-12-2009, 08:11 PM Re: wrapper background not showing up in firefox
Webmaster Talker

Posts: 611
Trades: 0
sorry about that. after an hour i finally figured it out. i had to add a height to my wrapper div. derek<---green newbie smile

Last edited by silverglade; 05-12-2009 at 08:13 PM..
silverglade is offline
Reply With Quote
View Public Profile
 
Old 05-12-2009, 08:21 PM Re: wrapper background not showing up in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You need to stop adding hard heights to your containers, let the #wrapper "wrap" as it's supposed to. The problem was NOT the height, the problem, again, is you did not, and have not, CLEARED YOUR FLOATS. Adding overflow:auto to #container solves the problem and you can remove the height.

You also have an error in your coding:

Quote:
<link href="flowers.css" rel="stylesheet" type="text/css">
<html xmlns="http://www.w3.org/1999/xhtml"><style type="text/css">
That stylesheet link does NOT belong above the <html> tag, it belongs INSIDE the <head>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-12-2009, 09:27 PM Re: wrapper background not showing up in firefox
Webmaster Talker

Posts: 611
Trades: 0
thank you again ladynred. after repeating it to me several times, i finally will remember overflow auto on the wrapper from now on. also, the css link outside the header was something i missed because i was redoing this site that was done many months ago, and i should have looked there to see if it was right, and it wasnt. DUH!! derek <-----BONK.... thank you so much for all your help again!<-----what its like to be a newbie

here is the finished site. after most of the day....LOL.

http://derekvanderven.com/flower_events/home.html



.

Last edited by silverglade; 05-12-2009 at 09:29 PM..
silverglade is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to wrapper background not showing up in firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22893 seconds with 12 queries