2 ๊ธ ๋ณด์ - 1 ์์ 2 ๊น์ง (์ด 2 ์ค์์)
-
๊ธ์ด์ด๊ธ
-
2024๋ 5์ 26์ผ 13:03 #124146

๊น๋ค์์ฐธ๊ฐ์message์ firs name ํผ ์ฌ์ด์ ๊ฐ๊ฒฉ์ ์ ์ฉํ๊ณ ์ถ์๋ฐ, ์ ์ฉ์ด ์๋ฉ๋๋ค.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <link href="css/main.css" rel="stylesheet"> </head> <body> <div class="main_box"> <div class="sub_box"> <h1>contact us</h1> <form> <div> <h3>Your Email</h3> <input class="main-email" type="email" placeholder="das@gmail.com"> </div> <div class = "first-name"> <h3>First name</h3> <input type="text"> </div>
<div class = "last-name"> <h3>Last name</h3> <input type="text"> </div>
<div style = "clear : both"></div>
<div class="message clear-both"> <h3>Message</h3> <textarea class="msg-textarea"></textarea> </div> <br> <div class="check-box"> <input type="checkbox">Subscribe </div>
<div> <button class="main-button">send</button> </div>
</form> </div> </div> </body> </html>
*{ margin: 0; box-sizing: border-box; }div{ margin-top:10px; }body{ margin : 0px; }.main_box{ width :450px; height : 800px; background: #eeee; position : relative; margin-top : 0px;}
.sub_box{ width : 90%; height : 90%; background: #eeee; position : block; margin-left: auto; margin-right: auto; margin: auto;}
.main-email{ width: 100%; margin: auto; }.first-name{ float : left; padding-right: 15px; }.last-name{ float : right; }.check-box{ float : left; }.main-button{ background-color: #ff9900; /* ์ฃผํฉ์ ๋ฐฐ๊ฒฝ */ border: none; /* ํ ๋๋ฆฌ ์ ๊ฑฐ */ color: white; /* ํ ์คํธ ์์ */ padding: 10px 20px; /* ์์ชฝ ์ฌ๋ฐฑ */ text-align: center; /* ํ ์คํธ ๊ฐ์ด๋ฐ ์ ๋ ฌ */ text-decoration: none; /* ์ธ๋๋ผ์ธ ์ ๊ฑฐ */ font-size: 16px; /* ํฐํธ ํฌ๊ธฐ */ font-weight: bold; /* ํฐํธ ๊ตต๊ธฐ */ text-transform: uppercase; /* ๋ชจ๋ ํ ์คํธ๋ฅผ ๋๋ฌธ์๋ก ๋ณํ */ cursor: pointer; float : right; }.message-wrap { clear: both; margin-top: 10px; }.message-textarea { width: 100%; } -
๊ธ์ด์ด๊ธ
2 ๊ธ ๋ณด์ - 1 ์์ 2 ๊น์ง (์ด 2 ์ค์์)
- ๋ต๋ณ์ ๋ก๊ทธ์ธ ํ ๊ฐ๋ฅํฉ๋๋ค.
