Difference between revisions of "Template:TCU Taiwan/CSS"
Phoebe chen (Talk | contribs) |
Phoebe chen (Talk | contribs) |
||
Line 28: | Line 28: | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
html, body, .wrapper { | html, body, .wrapper { | ||
width: 100%; | width: 100%; | ||
Line 40: | Line 33: | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
− | + | 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; | ||
+ | } | ||
Revision as of 07:42, 31 May 2015