Skip to content

Commit

Permalink
added tooltip hover
Browse files Browse the repository at this point in the history
  • Loading branch information
HMside authored and HMside committed Feb 18, 2017
1 parent bb6cc19 commit 42c2a4b
Showing 1 changed file with 46 additions and 9 deletions.
55 changes: 46 additions & 9 deletions www/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,25 @@ input, select, textarea {
.input1 {
width: 99%;
}

.input2 {
width: 35%;
}
.input3 {
width: 72%;
}
.select1 {
width: 100%;
}

.select2 {
width: 25%;
}

.select3 {
width: 26%;
width: 30%;
}

.select4 {
width: 35%;
}

.input3 {
width: 72%;
}

textarea {
height: 300px;
}
Expand Down Expand Up @@ -164,3 +162,42 @@ divhover {
a:hover + divhover {
display: block;
}

.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
visibility: hidden;
width: 500px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 1s;
}

.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}

0 comments on commit 42c2a4b

Please sign in to comment.