<style>
.center {
text-align:center;
margin-top:200px;
}
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 100%;
left: 50%;
margin-left: -60px;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
.tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
</style>
<body>
<div class="center">
<div class="tooltip" >Hello World!
<span class="tooltiptext">this is tooltip!</span>
</div>
</div>
</body>
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 2982 | |
| 2981 | |
| 2980 | |
| 2979 | |
| 2978 | |
| 2977 | |
| 2976 | |
| 2975 | |
| 2974 |
HTML
Input Type Tel
|
| 2973 | |
| 2972 | |
| 2971 |
HTML
HTML5 input 유형
|
| 2970 | |
| 2969 | |
| 2968 | |
| 2967 | |
| 2966 | |
| 2965 |
HTML
html input select 요소
|
| 2964 |
HTML
HTML NAME 속성
|
| 2963 |
HTML
HTML METHOD POST GET
|
| 2962 |
HTML
html form action
|
| 2961 | |
| 2960 |
HTML
html form submit
|
| 2959 |
HTML
html form input 객체
|
| 2958 |
HTML
HTML 레이아웃 요소
|
| 2957 | |
| 2956 |
HTML
뷰포트 설정하기
|
| 2955 |
HTML
[HTML <head> 요소] 1
|
| 2954 | |
| 2953 |
HTML
[HTML 블록 및 인라인 요소]
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기