2016-08-19 119 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列出两次