Advertisement
Guest User

Metro Tile CSS - Web, Tech & Gadgetry

a guest
Oct 23rd, 2013
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.84 KB | None | 0 0
  1. @charset "utf-8";
  2.  
  3. /* Prevent visible highlighting of text */
  4.  
  5. ::selection {
  6.     background: transparent;
  7. }
  8.  
  9. body {
  10.     background-color: #008E8E;
  11.     font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
  12.     font-size: 12px;
  13.     color: #FFFFFF;
  14.     padding: 10%;
  15. }
  16.  
  17. #tile {
  18.     width: 210px;
  19.     height: 118px;
  20.     background-color: #3896F6;
  21.     background-image: url('wow.png');
  22.     background-repeat: no-repeat;
  23.     border: 3px solid #008E8E;
  24.    
  25.     transition: background-position 2s;
  26.     -moz-transition: background-position 2s; /* Firefox Support */
  27.     -webkit-transition: background-position 2s; /* Chrome and Safari Support */
  28.     -o-transition: background-position 2s; /* Opera Support */
  29. }
  30.  
  31. #tile:hover {
  32.     border-color: #219D9D;
  33.     background-position: bottom;
  34. }
  35.  
  36. #tileCaption {
  37.     position: relative;
  38.     top: 95px;
  39.     left: 12px;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement