Created
February 11, 2019 06:32
-
-
Save dhirajforyou/1499807ab3f852d001e198457bb8c75e to your computer and use it in GitHub Desktop.
Page Hover Preview // source https://jsbin.com/miqanik
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Page Hover Preview</title> | |
<style id="jsbin-css"> | |
.box{ | |
display: none; | |
width: 100%; | |
} | |
a:hover + .box,.box:hover{ | |
display: block; | |
position: relative; | |
z-index: 100; | |
} | |
</style> | |
</head> | |
<body> | |
This live preview for <a href="http://en.wikipedia.org/">Wikipedia</a> | |
<div class="box"><iframe src="http://en.wikipedia.org/" width = "500px" height = "500px"></iframe></div> remains open on mouseover. | |
<script id="jsbin-source-css" type="text/css"> .box{ | |
display: none; | |
width: 100%; | |
} | |
a:hover + .box,.box:hover{ | |
display: block; | |
position: relative; | |
z-index: 100; | |
} | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box{ | |
display: none; | |
width: 100%; | |
} | |
a:hover + .box,.box:hover{ | |
display: block; | |
position: relative; | |
z-index: 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment