ヘッダーのテキストを水平に整列させてくれてありがとうございます。
ヘッダーにテキストを縦横に整列しようとしています。それはちょうどヘッダーの一番下に止まっている。
ヘッダーの下部からテキストを移動できないようです。私は私の体に0の詰め物があります。
ご迷惑をおかけして申し訳ありません。
HTML
<body>
<div class="background">
<div class="header">
<div class="menu">
<ul class="nav">
<li id="nav-products"><a href="#">Products</a></li>
<li id="nav-contact"><a href="#">Contact</a></li>
<li id="nav-about"><a href="#">About</a></li>
</ul>
<div class="logo">
<img src="images/Logo sketch.png">
</div>
</div>
</body>
CSS
.nav {
box-sizing: border-box;
text-decoration: none;
font-family: 'Montserrat', sans-serif;
position: relative;
}
.header {
background-color: white;
padding-top: 100px;
background-size: cover;
background-position: center;
position: relative;
}
ul { /*text header*/
list-style: none;
position: absolute;
text-align: center;
border: 2px dashed #f69c55;
}
ul li {
outline: 0 none;
display: inline-block;
padding: 0 2.6em;
margin: 0;
}
a {
color: #111;
font-size: 16px;
font-style: normal;
font-weight: 100;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: black;
}
a:hover {
text-decoration: none;
color: black;
}
a:active {
text-decoration: none;
color: black;
}
何が起こっているのかを示すフィドルを作成してください –