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

๊น๋ค์์ฐธ๊ฐ์Last name ์์ ์ ๋ ฅ์นธ์ 100%๋ก ์ค์ ํ๋๋ฐ, ๋ ธ๋์ ๋ถ๋ถ๊น์ง ํ์ด๋์ค๋๋ฐ ์์ธ์ ๋ชป ์ฐพ๊ฒ ์ต๋๋ค. .main-email{ width: 100%; margin: auto; }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <link href="css/main.css" rel="stylesheet"> <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> <h3>Message</h3> <textarea></textarea> </div> <br> <div class="check-box"> <input type="checkbox">Subscribe </div>
<div> <button class="main-button">send</button> </div>
</form> </div> </div> </head>
.main_box{ width :450px; height : 800px; background: #eeee; position : relative;}
.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; }-
์ด ๊ฒ์๊ธ์
๊น๋ค์ ์ ์ํด 1 ๋
, 9 ์ ์ ์ ์์ ๋์ต๋๋ค.
2024๋ 5์ 26์ผ 15:37 #124167
codingappleํค ๋ง์คํฐinput์ box-sizing ์์ฑ ์กฐ์ ํด๋ด ์๋ค
-
์ด ๊ฒ์๊ธ์
-
๊ธ์ด์ด๊ธ
2 ๊ธ ๋ณด์ - 1 ์์ 2 ๊น์ง (์ด 2 ์ค์์)
- ๋ต๋ณ์ ๋ก๊ทธ์ธ ํ ๊ฐ๋ฅํฉ๋๋ค.
