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 |
|
#1
|
|||
|
|||
|
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!!!! |
|
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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.) |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
Also try this
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
||||
|
||||
|
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)
|
|
#8
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
From http://www.communitymx.com/content/a...F76&print=true
Quote:
|
|
#9
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
There's a link to the page in my first post.
|
|
#10
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
Quote:
|
|
#11
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
Tried it. Didn't fix it.
|
|
#12
|
|||
|
|||
|
Re: Strange gaps in FF (IE works fine)
Quote:
Didn't fix the problem. |
|
#13
|
|||
|
|||
|
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! |
|
#14
|
|||
|
|||
|
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! |
|
#15
|
|||
|
|||
|
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...
|
|
#16
|
||||
|
||||
|
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)
|
|
#17
|
|||
|
|||
|
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!
|
|
#18
|
|||
|
|||
|
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!!
|
|
#19
|
||
|
|