How to get rid of unwanted space between tables?

天涯浪子 提交于 2019-12-13 05:24:55

问题


I have a page with two large tables, one positioned above the other:

http://www.sportsmogul.com/Encyclopedia/2007/BOS/index.html

In my editor (Dreamweaver), there is no space between the tables.

But in Chrome, there is a gap of about 10 pixels (the blue space where the background shows through, between the top "navbar" and the rest of the page).

Would like to get rid of this gap.


回答1:


It appears that there is a <br> tag right inbetween the tables, I must say that while there is a tiny bit of doubt, I do believe that this is the culprit.

Please see Exhibit A:

Highlighted in blue, the <br> resides right inbetween the tables.

For more information about the <br> tag please see this link: http://en.wikipedia.org/wiki/HTML#Elements




回答2:


Remove the <br> tag before the starting <table> tag of the tables. If you remove that, the space goes off in Chrome. Since Dreamweaver does not display non-display elements, you wouldn't have seen it during the source time.



来源:https://stackoverflow.com/questions/26866134/how-to-get-rid-of-unwanted-space-between-tables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!