Created
January 23, 2013 00:16
-
-
Save mason-stewart/4600299 to your computer and use it in GitHub Desktop.
COOL WEEK 3 classwork from CoderDojo Web class.
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
| .sidebar { | |
| width: 50%; | |
| float: left; | |
| } | |
| .thumbnail { | |
| float: left; | |
| width: 120px; | |
| height: 120px; | |
| border-radius: 120px; | |
| overflow: hidden; | |
| -webkit-transition: all 0.9s ease; | |
| } | |
| .thumbnail:hover { | |
| width: 162px; | |
| height: 162px; | |
| border: 10px solid purple; | |
| -webkit-transition: all 0.9s ease; | |
| -webkit-transform: rotate(500deg); | |
| } | |
| .thumbnail img { | |
| width: 100%; | |
| height: 100%; | |
| border-radius: 1000px; | |
| } | |
| .upside-down { | |
| -webkit-transform: rotate(180deg); | |
| } | |
| .ghost { | |
| opacity: 0.1; | |
| } | |
| .ghost:hover { | |
| opacity: 1; | |
| width: 20px; | |
| height: 20px; | |
| } | |
| .main { | |
| width: 45%; | |
| float: left; | |
| } | |
| .big { | |
| float: left; | |
| width: 100%; | |
| border-radius: 1000px; | |
| overflow: hidden; | |
| } | |
| .big img { | |
| width: 100%; | |
| } |
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
| <html> | |
| <head> | |
| <title>My Great Ice Cream</title> | |
| <link rel="stylesheet" type="text/css" href="ice-cream.css"> | |
| </head> | |
| <body> | |
| <div class="sidebar"> | |
| <div class="thumbnail upside-down"> | |
| <img src="ice-cream-1.jpg"> | |
| </div> | |
| <div class="thumbnail ghost"> | |
| <img src="ice-cream-2.jpg"> | |
| </div> | |
| <div class="thumbnail"> | |
| <img src="ice-cream-3.jpg"> | |
| </div> | |
| </div> | |
| <!-- end of sidebar --> | |
| <div class="main"> | |
| <div class="big"> | |
| <img src="ice-cream-4.jpg"> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow, mason, thanks for being the COOLEST!!!!!!!!!!!!!!!!!