This is a discussion on "div after img creates unwanted spacing only in firefox" within the Web Page Design section. This forum, and the thread "div after img creates unwanted spacing only in firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
div after img creates unwanted spacing only in firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
div after img creates unwanted spacing only in firefox
15 minutes into coding, I find this problem that's so ridiculously simple yet unfix-able with my current knowledge.
There's a spacing between the images for my nav buttons and the new div I made for my content. The problem only appears in firefox. I'll appreciate any help, even a hack would work. Edit: Opera also has the spacing. Maybe it's IE doing something wrong. Still looking for a fix to it though. Edit again: I found a temporary fix by making the margins into negatives. But then that screws up IE. This is really starting to annoy me. I now see the importance of the Acid Tests. ![]() Html
Last edited by MeruFM; Aug 28th, 2008 at 23:39. |
|
#2
|
||||
|
||||
|
Re: div after img creates unwanted spacing only in firefox
On the #navbar and #content add:
margin: 0; padding: 0;
__________________
Yours is the Earth and everything that's in it
And - which is more - you'll be a Man my son!
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#3
|
|||
|
|||
|
Re: div after img creates unwanted spacing only in firefox
Thanks for trying but it didn't help.
I actually add * {padding: 0; margin: 0; border: 0;} to the top of all css as a habit. Edit: Fixed it. Added "float: left;" to #content {} I don't get why but it worked. I guess it's just a requirement to remove margins from div tags. Last edited by MeruFM; Aug 29th, 2008 at 04:17. Reason: Finished |
|
#4
|
|||
|
|||
|
Re: div after img creates unwanted spacing only in firefox
floating just takes the element out of the normal document flow. It does not directly affect margins or padding.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS 'clear float' creates too much gap | cdarnbor | Web Page Design | 1 | Jul 7th, 2008 01:44 |
| IE Browser Creates Problem | sakibonline | Web Page Design | 1 | Aug 8th, 2007 13:57 |
| Extra line spacing in Firefox vs IE | bgoo | Web Page Design | 6 | Apr 16th, 2007 01:17 |
| Page creates horizontal scroll bar in IE | leebridgewater | Web Page Design | 1 | Mar 5th, 2006 10:23 |
| Firefox creates huge gap? shifts down. | ElmerFud3 | Web Page Design | 1 | Dec 14th, 2005 15:41 |