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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Firefox not showing background images in divs.

    Here is the temporary link to the website (I haven't been working on it for a while so no links work): Linky

    Here is the link to the css if you need it: More Linky

    So if you look at this in Firefox, none of the background images show up. Although, they do show up in IE. I have googled my problem and it seems that a lot of people have had the same problem, but have had completely different solutions (the solutions to there problem does not work for me.) I'm using HTML-Kit to write the code, and the preview it gives looks fine.

    I'm just one push away from getting completely frustrated.

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Code:
    div.wrapper.header{
      background-image: url('ead.png');
    	height: 175px;
    	display: block;}
    I don't know why it works, but on my system if you remove the letter h from head.png, it works.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, it still doesn't work.

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    This is what I get on my PC. Which is correct, if any.

    Frank
    Attached Thumbnails Attached Thumbnails Firefox not showing background images in divs.-screenhunter_02-jan.-06-18.01.jpg   Firefox not showing background images in divs.-screenhunter_03-jan.-06-18.01.jpg   Firefox not showing background images in divs.-screenhunter_01-jan.-06-18.01.jpg  
    Last edited by effpeetee; 01-06-2008 at 07:42 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #5
    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 Gooberdued,
    In your CSS you have div.wrapper.header

    .wrapper and .header are two different classes and there should be a space in between.
    Like this:
    Code:
    div.wrapper .header{
      background: url('http://pksprites.googlepages.com/head.png');
    	height: 175px;
    	display: block;
    }
    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

  • #6
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Putting a space here makes a big difference.

    Frank
    |
    Code:
    div.wrapper  | .main-back{
      background-color:transparent;
    	background-attachment: scroll;
      background-image: url('http://pksprites.googlepages.com/main_back.png');
    	background-repeat: repeat-y;}
    div.wrapper.footer{
      background: url('bottom.png');
    	height: 95px;}
    Last edited by effpeetee; 01-06-2008 at 08:09 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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