ขอบคุณที่ช่วยฉันออกไป
ฉันกำลังพยายามจัดข้อความในแนวตั้งและแนวนอนในส่วนหัว มันติดอยู่ที่ด้านล่างสุดของส่วนหัว
ดูเหมือนว่าฉันไม่สามารถย้ายข้อความจากด้านล่างของส่วนหัวได้เลย ฉันมีช่องว่างภายใน 0 อันในร่างกายของฉัน
ความช่วยเหลือใด ๆ ที่ชื่นชมมาก
HTML
<body>
<div class="background">
<div class="header">
<div class="menu">
<ul class="nav">
<li id="nav-products"><a href="/th#">Products</a></li>
<li id="nav-contact"><a href="/th#">Contact</a></li>
<li id="nav-about"><a href="/th#">About</a></li>
</ul>
<div class="logo">
<img src="images/Logo sketch.png">
</div>
</div>
</body>
ซีเอสเอส
.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;
}