How to get rid of unwanted space between tables?

2019-08-25 03:41发布

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.

2条回答
仙女界的扛把子
2楼-- · 2019-08-25 04:23

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.

查看更多
乱世女痞
3楼-- · 2019-08-25 04:26

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:

enter image description here

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

查看更多
登录 后发表回答