Space between rows in simple HTML table showing up in FireFox
I have done a bunch of research on this and it appears that the problem of seeing a space between rows in a table is common in FireFox. I had 3 spaces appearing at one time and was able to successfully fix two of them with the style="display:block;" style, but I can't get the last one fixed.
I have three rows with images in them. The first row has one image that is 800 pixels wide (as wide as the table it's in). The third row also has one image that is 800 pixels wide. Those two were easy to fix. The second row, however, has 10 images side by side in it that make up 800 pixels all together. I tried to put the display:block style in all 10 images, but it went crazy on me and threw everything out of whack.
I also tried to insert a <br> in between the second and third line within the same cell to see if that helped and it still wouldn't work. That's where it boggled my beginner brain.
Just tried it, but still have the horizontal space in FF. From what I can understand, FF leaves a little room at the bottom of each cell/row in the table for "g" or "y" or any character that is displayed under the normal "bottom". I'm guessing that's why "display:block;" works on my two images that are the width of the table. But, why wouldn't "display:block;" work on the row with multiple images that make up the width of the table? When I add it to all of them, it actually displays like I entered a
between each of them.
Is there something I can do to add code to detect if the user is viewing the page using FF and set that particular portion of the page up differently?
cubfan2372
ASKER
The last sentence in the first paragraph should be...
When I add it to all of them, it actually displays like I entered a "
" between each of them.
cubfan2372
ASKER
Heh...well, it appears that I can't enter a < b r > normally or EE will start a new line for me. :)
Yes this new input box has serious problems that are hard for me to handle.
Are you sure you don't have a FORM involved in the table, or a DIV or something else? Setting the body and table to all zero's as shown above should remove ALL spaces completely. If other elements, CSS style them for no margins too, especially forms.
If this is FF3 only, then it is likely a bug. All browsers should respect the ability to set all form elements to absolutely zero padding, spacing and margins. If not, it is a FLAW in the browser, because some page layouts cannot work unless you can do this.
cubfan2372
ASKER
There is DIV tag in there, but I fixed it by turning my 10 multiple images into an image map and setting up the hover drop downs from there. It's working without the space now.
However, I have a similar problem without images on a different page and your suggestions fixed that problem, so thank you very much for your assistance!!
scrathcyboy
glad to help. Remember to do this for DIVs, Images, Forms and Tables, especially to reign in IE's built in obsession with padding all these elements, which is completely uncalled for.
between each of them.
Is there something I can do to add code to detect if the user is viewing the page using FF and set that particular portion of the page up differently?