home > 『Web標準の教科書』読者サポートページ > 第6章 第4節
第6章 第4節(p.402-406)
* {
margin: 0;
padding: 0;
border: 0;
background-color: transparent;
color:(適当な値);
font-size: 100%;
font-weight: normal;
font-style: normal;
text-decoration: none;
}
/* Suggested order
* display
* list-style
* position
* float
* clear
* width
* height
* margin
* padding
* border
* background
* color
* font
* text-decoration
* text-align
* vertical-align
* white-space
* other text
* content
*/
body {
margin: 0 auto;
padding: 0;
background: #9cc url(../images/body_bcg.gif);
color: #221;
font-size: 90%;
font-family: Verdana, Arial, sans-serif;
text-align: center;
}
<style type="text/css" media="all">
@import "/css/styles.css";
</style>
<link rel="stylesheet" type="text/css"
href="/css/dummy.css" media="all" />
@import "/css/styles.css";
<style type="text/css" media="all">
@import "null?\"\{";
@import "/css/styles.css";
@import "null?\"\}";
</style>
<link rel="stylesheet" type="text/css"
href="/css/dummy.css" media="all" />
@import "null?\"\{";
@import "/css/styles.css";
@import "null?\"\}";
p#cnav {
margin: 0;
font-size: x-small;
text-align: left;
}
html>body p#cnav { font-size: small; }