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 09-04-2012, 06:16 PM   PM User | #1
Dominor Novus
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Dominor Novus is an unknown quantity at this point
Question Why do I have a random inconsistent space when viewing in Firefox?

I've been reviewing a page for cross-browser compatibility though I've noticed a problem in the latest version of Firefox.

An unexplainable white block appears beneath the navigation menu though it does not occur in any other browser.

I've checked the CSS though I can't any specific CSS code that's causing the space i.e. no margins or paddings are specified.

Here's the page in question: http://tinyurl.com/cuq4ql2

Any insight would be appreciated.

Last edited by Dominor Novus; 09-04-2012 at 09:32 PM..
Dominor Novus is offline   Reply With Quote
Old 09-04-2012, 09:02 PM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Add to your CSS anywhere:

Code:
#home_panels {
     padding-top: 25px !important;
}
#home_panels table {
     margin-top: 0 !important;
}

Last edited by Sammy12; 09-04-2012 at 09:05 PM..
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
Dominor Novus (09-04-2012)
Old 09-04-2012, 09:31 PM   PM User | #3
Dominor Novus
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Dominor Novus is an unknown quantity at this point
Fantastic, thank you.

I guess that's what I get for using a table for layout.

Marked as resolved.
Dominor Novus is offline   Reply With Quote
Old 09-04-2012, 09:40 PM   PM User | #4
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
It was not because of the <table>.

The general rule is if you are trying to push something in or out (constrict) the parent, use paddings. If you are trying to move something use margins.

The problem was that there were confusing floats and you should probably steer away from using margin-top: ; as I've seen a countless number of threads posted because of the "blank space".

Last edited by Sammy12; 09-04-2012 at 09:42 PM..
Sammy12 is offline   Reply With Quote
Reply

Bookmarks

Tags
cross-browser, firefox

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 11:10 PM.


Advertisement
Log in to turn off these ads.