Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-19-2007, 02:20 PM   PM User | #1
barnettgs
Regular Coder

 
Join Date: Sep 2002
Posts: 157
Thanks: 2
Thanked 0 Times in 0 Posts
barnettgs is an unknown quantity at this point
Firefox bug on image background centering?!

There is no problem with Safari or Internet Explorer 7. No problem in Firefox unless you resized browser to less than 1024 width (say 800px wide).

Check the template at: http://irishdeaf.com/template2008.html and resize Firefox browser to smaller and then scroll to the right. You will see the background isn't centering to the website but to your browser window! Is that a bug?

Also I'm not sure why there is a space on left when there's no space on the right?

Thanks
barnettgs is offline   Reply With Quote
Old 10-19-2007, 02:38 PM   PM User | #2
Fang
Regular Coder

 
Join Date: Jun 2004
Posts: 495
Thanks: 0
Thanked 82 Times in 80 Posts
Fang is on a distinguished road
It is supposedly the correct implementation.
Corrected by adding width:995px; margin:auto; to the body
Fang is offline   Reply With Quote
Old 10-19-2007, 02:48 PM   PM User | #3
barnettgs
Regular Coder

 
Join Date: Sep 2002
Posts: 157
Thanks: 2
Thanked 0 Times in 0 Posts
barnettgs is an unknown quantity at this point
Ahh thanks, just fixed the spacing.

So how do I center the background image to the page, not to the browser window? (especially firefox!)
barnettgs is offline   Reply With Quote
Old 10-19-2007, 02:51 PM   PM User | #4
Fang
Regular Coder

 
Join Date: Jun 2004
Posts: 495
Thanks: 0
Thanked 82 Times in 80 Posts
Fang is on a distinguished road
By moving the background image to #wrap and adjusting child element positions accordingly.
Fang is offline   Reply With Quote
The Following 2 Users Say Thank You to Fang For This Useful Post:
barnettgs (10-19-2007), dcostalis (10-19-2007)
Old 10-19-2007, 03:20 PM   PM User | #5
barnettgs
Regular Coder

 
Join Date: Sep 2002
Posts: 157
Thanks: 2
Thanked 0 Times in 0 Posts
barnettgs is an unknown quantity at this point
Ok, would it be better to create another wrap - the outer wrap for background? Existing wrap would become an inner wrap.

Thanks

EDIT: Well, I did it and added top/bottom padding to outer wrap. It's all good!

Big thanks to you otherwise I wouldn't have done it myself!

Last edited by barnettgs; 10-19-2007 at 03:31 PM..
barnettgs is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:31 AM.


Advertisement
Log in to turn off these ads.