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.
|
|
|
|
|
![]() |
||
Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
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:
EDIT: The CSS validates. However, the HTML doesn't. But I dont have a clue what this error means :P Quote:
Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Last edited by Jack Franklin; Dec 10th, 2007 at 21:25. |
|
|
|
#2
|
|||
|
|||
|
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)
|
|
#3
|
|||
|
|||
|
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.
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. |
|
#4
|
|||
|
|||
|
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)
|
|
#5
|
||||
|
||||
|
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
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?
Have you tried fixing your broken code?
|
|
#7
|
|||
|
|||
|
Re: Firefox 2.0.0.8 displaying Wrapper BG Colour Wrongly?
This should do it
|
![]() |
| Thread Tools | |
|
|
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 |