2013-03-01 97 views
1

我有点难住。在网页顶部的差距。没有差距显示在Dreamweaver

在我的网站上显示的标题和导航栏之间有点差距。我不知道为什么或如何摆脱它。

www.elite-arcades.com

谁能帮帮忙?

继承人的代码:

<!--new header section ends --> 

     <tr> 
      <td> 
       <img src="layout/eliteheader.jpg" alt="Elite Gaming | The UK's Premier Arcade Machine Supplier" width="900" height="235" />     </td> 
     </tr> 


<!-- Navigation Menu Begins --> 

    <tr bordercolor="#000000"> 
    <td background="layout/background1.gif"> 
     <div id="Navigation" style="PADDING-BOTTOM: 0px; PADDING-LEFT: 50px; PADDING-RIGHT: 50px; PADDING-TOP: 0px;"> 

和CSS:

body { 
color:#333333; 
font-family: Verdana, Arial, Helvetica, sans-serif; 
font-size: 12px; 
font-style: normal; 
font-weight: normal; 
text-decoration: none; 
margin: 0; 
padding: 0; 

}

回答

0

使用vertical-align:top到下面的精英标题图像,问题将得到解决。

<img style="vertical-align: top" width="900" height="236" alt="Elite Gaming | The UK's Premier Arcade Machine Supplier" src="layout/eliteheader.jpg"> 
+0

非常感谢!它一直在窃听我这么久! – 2013-03-01 13:17:05

1

这是因为你有cellspacing设置为28以下行:

<table cellpadding="0" cellspacing="28" width="100%"> 

您需要将其设置为0并检查它是否对页面布局的其他部分没有任何影响。