daily pastebin goal
15%
SHARE
TWEET

Octogono

a guest Aug 27th, 2011 469 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #octagon {
  2.         width: 100px;
  3.         height: 100px;
  4.         background: red;
  5.         position: relative;
  6. }
  7.  
  8. #octagon:before {
  9.         content: "";
  10.         position: absolute;
  11.         top: 0;
  12.         left: 0;    
  13.         border-bottom: 29px solid red;
  14.         border-left: 29px solid #eee;
  15.         border-right: 29px solid #eee;
  16.         width: 42px;
  17.         height: 0;
  18. }
  19.  
  20. #octagon:after {
  21.         content: "";
  22.         position: absolute;
  23.         bottom: 0;
  24.         left: 0;    
  25.         border-top: 29px solid red;
  26.         border-left: 29px solid #eee;
  27.         border-right: 29px solid #eee;
  28.         width: 42px;
  29.         height: 0;
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top