コード HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="stylesheet.css"> <title>corp_sample1</title> </head> <body> <header> <p>テキストテキストテキストテキストテキスト</p> </header> <div class="top1"> <h1>BAAA Corporation</h1> <ul> <li>会社概要</li> <li>事業紹介</li> <li>採用情報</li> <li>お問い合わせ</li> </ul> </div> <img src="top-picture.jpg" class="top-picture"> <p class="notice">お知らせ</p> </html> </body> css header{ background-color:#4682b4; } header p{ color:white; padding-left:100px; } .top1{ display:flex; } .top1 h1{ padding-left:100px; display: inline-block; } .top1 li{ list-style:none; padding:20px; float:left; display:inline-block; } .top-picture{ height:350px; width:1200px; padding-left:100px } .notice{ border-bottom: 2px solid #024881; width:900px; padding-left:100px; } ```![イメージ説明](f7f1adb939b6b4713898804cca25367b.png) ![イメージ説明](3afe8bbf10ebbe6f66e5b566bfc4d67e.png) HTMLでサンプルをパクって練習をしています。 「お知らせ」の下のボーダーラインを1枚目の画像のようにスタート位置を「お知らせ」の下に動かしたいです。 cssでどう記述すれば良いでしょうか?
回答に必要な情報を提示しましょう
htmlとcss、全文のせてください
回答2件
あなたの回答
tips
プレビュー