2017-08-25 107 views
0

我想知道如何刪除標誌和分裂爲什麼會出現的標誌和

這之間的巨大間距在我的HTML頁面師之間不必要的間距是我的HTML代碼:

<main class="site-main page-main"> 
 
    <center><img src="img/corelogo.png" alt="Post" height="180" width="180" style="position: relative; top: -210px;"></center> 
 
    <center> 
 
    <div style="font-family: Questrial; font-size:40px;">Government Files Download</div><br>
網站

Photo of site

照片

CSS網站

CSS of site

+1

歡迎SO。請複習[如何創建一個最小,完整和可驗證的示例](https://stackoverflow.com/help/mcve) –

回答

1

的在你的CSS您使用屬性圖像將其放置在上面這個空間是由於零下

position: relative; 
top: -210px; 

設置top屬性您希望將徽標置於導航欄的頂部,因此您應該將此屬性設置爲導航

position: relative; 

和標識使用該屬性

position: absolute; 

然後設置其希望設置的頂部和左側的屬性和地方喲要調整的標誌