Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css image popup on hover

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

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
</style>
<body style="text-align:center;">

<div class="tooltip" style="color:green;font-family:verdana">A Pomodoro timer
  <span class="tooltiptext"><img src="img url here"></span>
</div></p>
 
PREVIOUS NEXT
Tagged: #css #image #popup #hover
ADD COMMENT
Topic
Name
3+2 =