HTMLのテキストを学習中です。
プルダウンメニュー、テキストフィールド、送信ボタンの幅を30emで調整するのに
以下の文章を書きました。対応画面ですべての横幅が揃うらしいのですが全く変化しません。
検証サイトで調べてもエラーで出るわけでもなく書き直しもしましたが結果は同じです。
いよいよ詰まってしまったのですが考えられる原因はありますか?
<main> <h2>お問い合わせ</h2> <form method="GET" action="result.html"> <div> <label for="kind">お問い合わせの種類</label><br> <select id="kind" name="kind"> <option value="reservation">ご予約</option> <option value="event">イベントについて</option> <option value="contact">その他のお問い合わせ</option> </select> </div> <div> KUJIRA Cafeにご来店いただいたことはありますか<br> <label><input type="radio" name="first" value="yes" checked>はい</label> <label><input type="radio" name="first" value="no">いいえ</label> </div> <div> 当カフェをお知りになったきっかけは?<br> <label><input type="checkbox" name="how" value="friends">知り合いの紹介で</label> <label><input type="checkbox" name="how" value="magazine">雑誌・Webサイトを見て</label> </div> <div> <label>お問い合わせの件名<br> <input type="text" name="subject" palaceholder="お問い合わせ"></label> </div> <div> <label>お問い合わせの具体的な内容<br> <textarea name="message"></textarea></label> </div> <div> <input type="submit" id="title" name="submit" value="送信"> </div> </form> </main> <!--メインここまで--><!--メイン-->
/*contact.html */
form div{
padding: 12px;
border-bottom: 1px dashed #bec2c7;
}
select{
width: 30em;
}
input [name="subject"]{
width: 30em;
}
textarea{
width: 30em;
height: 6em;
}
input[type="submit"]{
margin: 20px 0;
width: 30em;
}