Team:UCLA/Template/CSS test
From 2014.igem.org
(Difference between revisions)
Samichaels (Talk | contribs) |
Samichaels (Talk | contribs) |
||
Line 518: | Line 518: | ||
} | } | ||
+ | <!--CONTENT BOX STYLING--> | ||
+ | section { | ||
+ | position: relative; | ||
+ | margin-bottom: 40px; | ||
+ | padding: 40px; | ||
+ | background-color: #96a5be; | ||
+ | } | ||
+ | section:last-child { | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | section:before, section:after { | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | width: 40px; | ||
+ | height: 40px; | ||
+ | top: 0; | ||
+ | right: 0; | ||
+ | content: ""; | ||
+ | } | ||
+ | section:before { | ||
+ | border-top: solid 20px #fff; | ||
+ | border-right: solid 20px #fff; | ||
+ | border-left: solid 20px transparent; | ||
+ | border-bottom: solid 20px transparent; | ||
+ | } | ||
+ | section:after { | ||
+ | border-bottom: solid 20px #5b7093; | ||
+ | border-left: solid 20px #5b7093; | ||
+ | border-right: solid 20px transparent; | ||
+ | border-top: solid 20px transparent; | ||
+ | } | ||
</style> | </style> | ||
</html> | </html> |
Revision as of 23:16, 11 August 2014