Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
CSS Dropdowns
SUBMITTED BY:
Tusohian
DATE:
Sept. 18, 2016, 4:46 p.m.
FORMAT:
Text only
SIZE:
501 Bytes
Raw
Download
Tweet
HITS:
542
Go to comments
Report
<style>
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
<div class="dropdown">
<span>Mouse over me</span>
<div class="dropdown-content">
<p>Hello World!</p>
</div>
</div>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus