Diamond Square


SUBMITTED BY: Guest

DATE: March 11, 2013, 10:04 a.m.

FORMAT: CSS

SIZE: 342 Bytes

HITS: 1381

  1. #diamond {
  2. width: 0;
  3. height: 0;
  4. border: 50px solid transparent;
  5. border-bottom-color: red;
  6. position: relative;
  7. top: -50px;
  8. }
  9. #diamond:after {
  10. content: '';
  11. position: absolute;
  12. left: -50px;
  13. top: 50px;
  14. width: 0;
  15. height: 0;
  16. border: 50px solid transparent;
  17. border-top-color: red;
  18. }

comments powered by Disqus