2016-08-19 41 views
2

我是html/css的新手,我正在嘗試編輯着陸頁。我幾乎得到它我只有一個問題,我似乎無法找到如何去做。(HTML)如何移動邊緣左側的導航欄

我想在我的網站的最邊緣左側移動這個導航條: enter image description here

我想我需要插入這個代碼的東西,但就是不知道它是什麼。

ul { 
 
\t float: left; 
 
\t margin: 30px 0 50px 0; 
 
\t font-family: 'Roboto', sans-serif; 
 
\t border-radius: 10px; 
 
\t list-style-type: none; 
 
    margin: 0; 
 
    padding: 0; 
 
    width: 200px; 
 
    background-color: #010c15; 
 
} 
 

 
li a { 
 
    display: block; 
 
    color: white; 
 
    padding: 8px 16px; 
 
    text-decoration: none; 
 
} 
 

 
li a:hover { 
 
    border-radius: 10px; 
 
\t background-color: #0099ff; 
 
    color: white; 
 
}

謝謝您的解答。

+1

請發佈你的HTML源碼.. –

回答

0

你可以嘗試添加以下:

ul{ 
    position:absolute; 
    left: 0; 
    .... 
} 

而且你似乎有margin列出兩次