<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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 2922 |
HTML
HTML 단락 <p> 태그
|
| 2921 |
HTML
<h1> ~ <h6> 사용
|
| 2920 |
HTML
html5 기본 구조
|
| 2919 | |
| 2918 |
HTML
[HTML] 탭메뉴 dl dt dd
|
| 2917 | |
| 2915 | |
| 2914 | |
| 2913 |
HTML
폼 전송할 때 알아야 할 팁
|
| 2912 |
CSS
outline 속성
|
| 2910 | |
| 2909 |
웹접근성
[웹접근성] ol과 ul 에 대해
1
|
| 2908 |
웹접근성
웹 접근성에 대한 이해
|
| 2907 | |
| 2906 | |
| 2905 |
CSS
css 팁
|
| 2903 |
CSS
css 툴팁 만들기
1
현재글
|
| 2902 | |
| 2901 | |
| 2900 |
반응형
미디어쿼리 예제
|
| 2899 | |
| 2897 | |
| 2896 | |
| 2895 | |
| 2892 |
반응형
미디어쿼리 기초
|
| 2891 | |
| 2890 | |
| 2889 | |
| 2873 |
HTML
html관련 자료 사이트
|
| 2866 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기