Created
June 13, 2012 10:09
-
-
Save psd/2923224 to your computer and use it in GitHub Desktop.
iframe thumbnail
This file contains 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> | |
<title>page thumbnails using iframes and CSS3</title> | |
<meta charset="utf-8"> | |
<style> | |
.thumbnail { | |
width: 300px; | |
height: 160px; | |
} | |
.thumbnail iframe { | |
width: 900px; | |
height: 480px; | |
-webkit-transform-origin: 0 0; | |
-moz-transform-origin: 0 0; | |
transform-origin: 0 0; | |
-webkit-transform: scale(0.3, 0.3); | |
-moz-transform: scale(0.3, 0.3); | |
transform: scale(0.3, 0.3); | |
overflow: hidden; | |
} | |
.thumbnail.overlay { | |
position: relative; | |
} | |
.thumbnail.overlay iframe { | |
position: relative; | |
z-index: 1; | |
} | |
.thumbnail.overlay a { | |
display: block; | |
position: absolute; | |
z-index: 2; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
color: #fff; | |
background-color: #fff; | |
opacity: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="thumbnail"> | |
<iframe src="http://www.direct.gov.uk"></iframe> | |
</div> | |
<div class="thumbnail"> | |
<iframe src="https://www.gov.uk"></iframe> | |
</div> | |
<div class="thumbnail overlay"> | |
<a href="http://www.direct.gov.uk">link</a> | |
<iframe src="http://www.direct.gov.uk"></iframe> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://whatfettle.com/2012/06/thumbs/