Difference between revisions of "Template:TCU Taiwan/CSS"
Phoebe chen (Talk | contribs) |
Phoebe chen (Talk | contribs) |
||
Line 11: | Line 11: | ||
} | } | ||
+ | |||
+ | header, nav, section, article, footer { | ||
+ | display: block; | ||
+ | } | ||
+ | header, nav, section, article, footer { | ||
+ | color: white; | ||
+ | } | ||
+ | header, footer { | ||
+ | text-align: center; | ||
+ | width: 100%; | ||
+ | } | ||
+ | header { | ||
+ | background-color: red; | ||
+ | font-size: 36px; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | nav { | ||
+ | position: fixed; | ||
+ | top: 40px; | ||
+ | right: 25px; | ||
+ | background-color: blue; | ||
+ | width: 100px; | ||
+ | } | ||
+ | section { | ||
+ | width: 86%; | ||
+ | background-color: gray; | ||
+ | padding: 20px; | ||
+ | margin: 20px; | ||
+ | } | ||
+ | footer { | ||
+ | background-color: green; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | |||
.firstHeading { | .firstHeading { | ||
width: 975px; | width: 975px; |
Revision as of 16:51, 30 May 2015