1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <style type="text/css"> #search { width: 300px; } #searchList { border: 1px solid gray; width: 280px; height: 200px; padding: 10px; background-color: white; position: absolute; left: 68px; top: 25px; } #tbl1 { width: 600px; margin: 0px auto; position: relative; left: 0px; top: 0px; </style> </head> <body> <!-- ex20.htm --> [연습 : 네이버 검색창st ] <table border="1" id="tbl1"> <tr> <td> 검색어 : <input type="text" id="search" /> <input type="button" value=" 검색하기 " /> <!-- 추천검색어 --> <div id="searchList"> 홍길동<br /> 아무게<br /> 태블릿<br /> 모니터<br /> </div> </td> </tr> <tr> <td>메인</td> </tr> <tr> <td>하단</td> </tr> </table> 추가 내용물... </body> </html> | cs |
'WEB > CSS' 카테고리의 다른 글
<div>로 레이아웃 짜기 예제 (0) | 2016.01.22 |
---|---|
float 태그 (0) | 2016.01.22 |
의사클래스 예제 (0) | 2016.01.22 |
블럭태그, 인라인태그 예제 (0) | 2016.01.22 |
박스모델 이용한 게시판 예제 (0) | 2016.01.22 |