前提・実現したいこと
模写をやっているのですが、やっている途中に右に大きな空白ができてしまいました、それを消したいです。
発生している問題・エラーメッセージ
右に空白ができてしまった
該当のソースコード
HTML
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Mosya1</title> <link rel="stylesheet" href="./css/reset.css"> <link rel="stylesheet" href="./css/main.css"> </head> <body> <header> <img src="./img2/image2.png" alt="text"> <div id="flex"> <ul> <li>TEL 00-0000-0000</li> <li>(受け付け 平日 9:00~17:00)</li> </ul> <p>お問い合わせ</p> </div> </header> <div id="catchcopy"> <h1>キャッチコピー</h1> </div> <div id="text"> <p>テキストテキストテキスト</p> </div> <div id="circle"> </div> </body> </html>css
header {
height: 60px;
}
header img {
padding-top: 23px;
padding-left: 190px;
width: 150px;
height: 25px;
}
header ul {
list-style: none;
font-size: 13px;
padding-right: 18px;
}
header p {
background-color: red;
width: 130px;
padding: 5px 0 3px 25px;
color: white;
border-radius: 100px;
}
header #flex {
float: right;
display: flex;
padding-top: 4px;
padding-right: 200px;
}
#catchcopy {
background-image: url("../img2/image1.png");
width: 1500px;
height: 600px;
background-size: cover;
}
#catchcopy h1 {
margin: 0;
position: relative;
top: 280px;
left: 600px;
color: grey;
opacity: 0.5;
font-weight: lighter;
font-size: 240%;
}
#text {
background-color: grey;
height: 40px;
width: 1500px;
text-align: center;
}
#text p {
padding-top: 10px;
margin: 0;
color: white;
}
/*# sourceMappingURL=main.css.map */
試したこと
補足情報(FW/ツールのバージョンなど)
あなたの回答
tips
プレビュー