HTML、CSS初心者です。
ヘッダーの部分にdivのクラスoneが被ってしまうのですがどうしたら
HTML
html
1 2 3 4<header> 5 <h1>Musia</h1> 6 <div class="header-menu"> 7 <a href="">Premium</a> 8 <a href="">Help</a> 9 <a href="">Register</a> 10 <a href="">Login</a> 11 </div> 12</header> 13 14<main> 15 16<div class="one"> 17<img src="" alt="画像 1.png"> 18<h1>ああああああ</h1> 19<p>ああああ</p> 20<a href="#">ああああああ/a> 21</div> 22
html
1 2 3# CSS 4 5@import url("sanitize.css"); 6 7body { 8 max-width: 1920px; 9} 10 11header { 12 width: 100%; 13 height: 150px; 14 position: absolute; 15 font-family: Apple LiGothic; 16} 17 18header h1{ 19 margin: 0; 20 width: 126px; 21 position: relative; 22 top: 45px; 23 left: 80px; 24 font-size: 60px; 25 color: #1BD3C5; 26 27} 28 29.header-menu { 30 font-size: 40px; 31 margin-right:20px; 32} 33 34.header-menu a { 35 margin: 0; 36 position: relative; 37 left: 1290px; 38 39 color: #1BD3C5; 40 margin-right: 60px; 41 text-decoration: none; 42} 43 44 45/* */ 46 47.one { 48 margin-top: 150px;; 49 width: 100%; 50 background: linear-gradient(118deg, #00FFD8, #00CEFF); 51} 52 53 54
ご回答の方よろしくお願いいたします
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/01 06:49
2019/05/01 06:53