Advertisement
ranisalt

Facebook CSS

Jul 7th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <style>
  5.             * { margin: 0; padding: 0; }
  6.             #box { border-radius: 15%; height: 200px; position: relative; width: 200px; }
  7.             #box div { position: absolute; }
  8.             #box > div {
  9.                 height: 85%;
  10.                 left: 45%;
  11.                 top: 15%;
  12.                 width: 85%;
  13.             }
  14.            
  15.             #box, #top > div, #horizontal > div { background-color: #359; }
  16.            
  17.             #top, #topbar, #vertical, #horizontal { background-color: #FFF; }
  18.            
  19.             #top {         
  20.                 border-top-left-radius: 100%;
  21.                 height: 20%;
  22.                 left: 15%;
  23.                 width: 20%;
  24.             }
  25.            
  26.             #top > div {
  27.                 border-top-left-radius: 100%;
  28.                 bottom: 0;
  29.                 height: 25%;
  30.                 right: 0;
  31.                 width: 25%;
  32.             }
  33.            
  34.             #topbar {
  35.                 height: 15%;
  36.                 left: 35%;
  37.                 width: 15%;
  38.             }
  39.            
  40.             #vertical {
  41.                 height: 75%;
  42.                 left: 15%;
  43.                 top: 20%;
  44.                 width: 15%;
  45.             }
  46.            
  47.             #horizontal {
  48.                 height: 15%;
  49.                 top: 27.5%;
  50.                 width: 52.5%;
  51.             }
  52.            
  53.             #horizontal > div {
  54.                 height: 110%;
  55.                 left: 95%;
  56.                 -webkit-transform: rotate(8deg);
  57.                 width: 10%;
  58.             }
  59.         </style>
  60.     </head>
  61.     <body>
  62.         <div id="box">
  63.             <div id="half">
  64.                 <div id="top"><div></div></div>
  65.                 <div id="topbar"></div>
  66.                 <div id="vertical"></div>
  67.                 <div id="horizontal"><div></div></div>
  68.             </div>
  69.         </div>
  70.     </body>
  71. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement