Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

This is a discussion on "Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?" within the Web Page Design section. This forum, and the thread "Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 10th, 2007, 21:20
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

Hey all,

Been working on a new CSS Trickery site.

For some strange reason, FF2.0.0.8 does not show the #wrapper background colour at all, and just shows the Body Background Colour, whilst IE7 (for once) displays everything perfectly. Has anyone ideas why?

http://www.csstrickery.co.uk/testing.

For those without IE, the text in the middle should be on the same colour background as the 'CSS Web Design Blog' text above it.

Code in question:

Code: Select all
body, html {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #ccc;
background-color: black;
background-image: url(images/backgroundefo.jpg);
background-repeat: no-repeat;
background-position: top left;
}
 
 
#wrapper {
width: 800px;
margin: 30px auto;
background-color: #383838;
height: 100%;
}
I think it must be something about FF ignoring the Wrapper BG rule because of the Body BG colour rule. Any ideas welcome.



EDIT:

The CSS validates. However, the HTML doesn't. But I dont have a clue what this error means :P
Quote:
Line 40, Column 3: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<h3>Borders as Underlines</h3>
Thank you,

Jack
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)

Last edited by Jack Franklin; Dec 10th, 2007 at 21:25.
Reply With Quote

  #2 (permalink)  
Old Dec 10th, 2007, 22:37
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

About the HTML error: What's your DOCTYPE?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #3 (permalink)  
Old Dec 10th, 2007, 22:46
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

No, IE did not get it right. Just because IE does what you wanted doesn't mean it's correct. Opera and Firefox both display the same. This is almost always a sign that they are right, and you've made a mistake. The only exception I've ever seen is the "1px rounding bug", which all browsers suffer from.

Because you're floating your columns, they can spill out of the container. This is perfectly correct according to the standards, and it actually makes good sense (although it's not immediately obvious).

To fix this, simply add a clearing <div> beneath the spilling-out boxes. Alternatively, apply { overflow: auto } to the wrapper.

To fix the XHTML errors, close all your <p> tags! Technically, the <h3> (for example) is inside a <p>, because you didn't close the <p> with </p>. This is not allowed (<p> may only contain inline content).

Last edited by MikeHopley; Dec 10th, 2007 at 22:49.
Reply With Quote
  #4 (permalink)  
Old Dec 11th, 2007, 02:29
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

There is one more CSS error in your about us page!
Unknown Properties "text-size"
I think you mean font-size
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #5 (permalink)  
Old Dec 11th, 2007, 06:46
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

No luck

By a Clearing Div I presume you mean {clear: both}. I put this just before the wrapper end tag. I've tried doing: <body bgcolor=>, i have tried surrounding everything in another div called #bgcolour, nope. I've set {overflow:auto} to the 3 main columns and the wrapper, but nothing.

Any other ideas :P

Appreciate the help.

Jack
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
  #6 (permalink)  
Old Dec 11th, 2007, 08:01
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

Have you tried fixing your broken code?
Reply With Quote
  #7 (permalink)  
Old Dec 11th, 2007, 22:08
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?

This should do it
Code: Select all
#wrapper {
    width: 800px;
    margin: 30px auto;
    background-color: #383838;
    height: 100%;
    overflow: hidden;

}
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra code displaying in Firefox? Kreeyon Web Page Design 5 Apr 3rd, 2008 19:21
colour picker (firefox) alexgeek Scripts and Online Services 15 Oct 21st, 2007 16:46
Displays wrongly in Firefox? spon Web Page Design 5 Feb 15th, 2007 17:19
CSS menu displaying wrong in Firefox (fine in IE) camcc Web Page Design 10 Oct 21st, 2006 02:05
PHP file displaying wrongly ??? j4mes_bond25 PHP Forum 6 May 19th, 2006 17:35


All times are GMT. The time now is 01:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43