├── README.markdown ├── css └── style.css └── index.html /README.markdown: -------------------------------------------------------------------------------- 1 | ## You can make shapes with a single element. 2 | 3 | That's cool, and fairly practical. -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | 6 | body { 7 | font: 14px/1.4 Monaco, MonoSpace; 8 | } 9 | 10 | a { 11 | text-decoration: none; 12 | color: red; 13 | } 14 | a:hover, a:active { 15 | color: black; 16 | } 17 | 18 | style { 19 | display: block; 20 | white-space: pre; 21 | background: #333; 22 | color: white; 23 | font: 12px Monaco; 24 | padding: 0 15px; 25 | } 26 | 27 | #page-wrap { 28 | width: 560px; 29 | margin: 80px auto; 30 | padding: 50px; 31 | background: #eee; 32 | -webkit-border-radius: 20px; 33 | -moz-border-radius: 20px; 34 | border-radius: 20px; 35 | -webkit-box-shadow: 36 | inset 0 0 10px rgba(0,0,0, 0.3), 37 | 0 0 10px rgba(0,0,0,0.3); 38 | } 39 | 40 | h1 { 41 | font: bold italic 72px "atrament-web-1","atrament-web-2", Georgia, Serif; 42 | margin: 0 0 20px 0; } 43 | h2 { 44 | font: bold italic 30px "atrament-web-1","atrament-web-2", Georgia, Serif; 45 | } 46 | h1 > span { 47 | color: red; 48 | } 49 | 50 | .shape { 51 | padding: 20px; 52 | } 53 | .shape > div { 54 | margin: 20px 0; 55 | } 56 | .shape > h2 { 57 | background: rgba(0,0,0,0.15); 58 | padding: 10px; 59 | width: 640px; 60 | text-indent: 60px; 61 | margin: 50px 0 0 -70px; 62 | position: relative; 63 | } 64 | .shape > h2 > a { 65 | position: absolute; 66 | right: 20px; 67 | bottom: 10px; 68 | font-size: 20px; 69 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |All of the below use only a single HTML element. Any kind of CSS goes, 19 | as long as it's supported in at least one browser.
20 | 21 |