간단상담 폼

그냥 폼이 괜찮아서 소개겸 올려 드립니다.
적용방법은 저두 연구중 입니다....^^;
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
* {
box-sizing: border-box;
}
/* Style inputs */
input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
/* Style the container/contact section */
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 10px;
}
/* Create two columns that float next to eachother */
.column {
float: left;
width: 50%;
margin-top: 6px;
padding: 20px;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column, input[type=submit] {
width: 100%;
margin-top: 0;
}
}
</style>
</head>
<body>
<h2>Responsive Contact Section</h2>
<p>Resize the browser window to see the effect.</p>
<div class="container">
<div style="text-align:center">
<h2>Contact Us</h2>
<p>Swing by for a cup of coffee, or leave us a message:</p>
</div>
<div class="row">
<div class="column">
<img src="/w3images/map.jpg" style="width:100%">
</div>
<div class="column">
<form action="/action_page.php">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your name..">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your last name..">
<label for="country">Country</label>
<select id="country" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
</select>
<label for="subject">Subject</label>
<textarea id="subject" name="subject" placeholder="Write something.." style="height:170px"></textarea>
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
</body>
</html>
댓글 1개
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4400 | ||
| 2694 | 2개월 전 | 187 | ||
| 2693 | 2개월 전 | 146 | ||
| 2692 | 2개월 전 | 157 | ||
| 2691 | 2개월 전 | 173 | ||
| 2690 | 2개월 전 | 325 | ||
| 2689 | 2개월 전 | 232 | ||
| 2688 |
|
2개월 전 | 439 | |
| 2687 | 2개월 전 | 290 | ||
| 2686 |
선택과집중
|
2개월 전 | 328 | |
| 2685 | 2개월 전 | 289 | ||
| 2684 | 2개월 전 | 345 | ||
| 2683 | 2개월 전 | 480 | ||
| 2682 | 2개월 전 | 275 | ||
| 2681 | 2개월 전 | 301 | ||
| 2680 |
선택과집중
|
2개월 전 | 277 | |
| 2679 | 2개월 전 | 329 | ||
| 2678 |
|
2개월 전 | 428 | |
| 2677 |
|
2개월 전 | 501 | |
| 2676 | 2개월 전 | 325 | ||
| 2675 | 2개월 전 | 303 | ||
| 2674 |
선택과집중
|
2개월 전 | 479 | |
| 2673 |
|
2개월 전 | 320 | |
| 2672 | 2개월 전 | 334 | ||
| 2671 | 3개월 전 | 283 | ||
| 2670 | 3개월 전 | 257 | ||
| 2669 | 3개월 전 | 373 | ||
| 2668 | 3개월 전 | 287 | ||
| 2667 |
선택과집중
|
3개월 전 | 482 | |
| 2666 |
선택과집중
|
3개월 전 | 469 | |
| 2665 |
선택과집중
|
3개월 전 | 403 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기