This is a discussion on "Strange gaps in FF (IE works fine)" within the Web Page Design section. This forum, and the thread "Strange gaps in FF (IE works fine) are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Strange gaps in FF (IE works fine)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Strange gaps in FF (IE works fine)
I'm using tables with CSS to set background images to create a neon frame around individual posts to a message board. In IE, everything looks great, but in FF, I get a very small gap between the top element/image and the two side elements/images. (See the first attachment - the gaps are circled in blue.) Even stranger, this only happens with the top element - not the bottom.
There's a sample page here: http://dhs57.stickpuppy.com/emedley_msgdisplay.php I've double/triple/googtuple checked the various aspects of this code. The image height is set properly, cellpadding/spacing are set correctly in the table, etc. When I look at it in Firebug, it looks like the top row somehow has a couple of extra pixels of bottom padding, but I don't see anything in my code that would cause that. I have to assume it's a FF bug (unless someone can spot something in my code that I have missed.) I don't really care what's causing it - I just need to FIX it! I've tried various positioning tricks with negative padding/margins/etc. Nothing seems to work. HELP!!!! |
|
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
Donny in that second screenshot in the top right hand column I see 0pt when I know you meant 0px. See if that clears up your spacing.
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
Thanks for the response, Linda.
Nope. Doesn't change a thing. I think "0 pt" is a valid setting and has the same effect as "0 px" but I didn't do that - Firebug did. (It does that. Sticks "0 pt" anywhere that you omit a value and allow the default to be used.) |
|
|||
|
Re: Strange gaps in FF (IE works fine)
Well I'm shooting int he dark here because I don't have your graphics and can't see what the design is really doing.
See if that isn't putting in a space of some sort. Let me know I'm around awhile and can place somemore. |
|
|||
|
Re: Strange gaps in FF (IE works fine)
Also try this
|
|
||||
|
Re: Strange gaps in FF (IE works fine)
Try the following (if you haven't yet):
table, tr, td, img - line-height, padding, margin ie.: table, tr, td, img{ line-height:1.0em; padding:0; margin:0; }
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Last edited by spinal007; May 26th, 2007 at 17:25. |
|
||||
|
Re: Strange gaps in FF (IE works fine)
and what's up with this????
font-size:100.01%;
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
From http://www.communitymx.com/content/a...F76&print=true
Quote:
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
There's a link to the page in my first post.
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
Quote:
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
Tried it. Didn't fix it.
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
Quote:
Didn't fix the problem. |
|
|||
|
Re: Strange gaps in FF (IE works fine)
Donny why do you always have the hard ones???
I'll have another look tomorrow if no one else comes through for ya! |
|
|||
|
Re: Strange gaps in FF (IE works fine)
I dunno. I guess I somehow manage to figure out the easy ones on my own!
Thanks, Linda! |
|
|||
|
Re: Strange gaps in FF (IE works fine)
Well, I'm still convinced it's an FF bug (and not something in my code), but I have figured out this spiffy workaround...
|
|
||||
|
Re: Strange gaps in FF (IE works fine)
Found a solution, instead of a cell with an image, (which you shouldn't be doing anyway), set the image as the background for the cell. Then I'm sure your problems with go away...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
You're right! That's a much more elegant solution - and it works without a workaround. Many thanks, Diego!
|
|
|||
|
Re: Strange gaps in FF (IE works fine)
OH my gosh, I can't believe I didn't think of that. That is how I did tables for years!!! I think since I started handcoding I'm already getting rusty in tables!!
|
|
||||
|
Re: Strange gaps in FF (IE works fine)
Hey, nice one... Now it works and downgrades beautifully!
Rule of thumb: If you want to use an image for presentation purposes, always make it the background of an element.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| firefox, gaps, table cell, tables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE6 Ignoring some styles but IE7 works fine?? | swillicott | Web Page Design | 4 | May 14th, 2008 11:35 |
| Floating works fine in firefox but not IE ! | marSoul | Web Page Design | 13 | Dec 18th, 2007 18:37 |
| CSS works fine with FF but not in IE..whats the problem? | AnoxiA | Web Page Design | 3 | Apr 3rd, 2007 20:56 |
| Strange gaps in table cells | Paula | Web Page Design | 2 | Oct 2nd, 2006 15:44 |
| IE issues with my layout, works fine in Firefox :[ | st3ady | Web Page Design | 6 | Aug 18th, 2006 21:18 |