応用例
body { background-color: white;
color: black;
font-size: 12pt;
margin: 6px 2px}
p { line-height:150%;
margin: 6px 8px;
padding: 3px;
font-size: 100%}
pre { background-color: #ccffff;
padding: 4px ;
margin: 4px 2px;
border: dashed;
border-color: #9999ff;
border-width: 3px}
B { letter-spacing: 4px}
Table{ empty-cells: show;
margin: 12px}
caption {text-align:left}
h1 {text-align: center;
font-weight: bold;
font-size: 160%;
letter-spacing: 3px;
margin: 3px}
h2 {font-weight: bold;
font-size: 120%;
border: solid;
border-color: #333333;
border-width: 2px;
padding: 3px 7px;
letter-spacing: 4px;
background-color: #ccffcc;
color: black;
margin : 12px 0px}
h3 {font-weight: bold;
font-size: 105%;
letter-spacing: 6px;
border-style: none none double none;
border-color: #333333;
border-width: 3px;
margin : 10px 0px;
padding: 0px 5px}
img { margin: 6px 2px }
ol {
line-height:130%;
letter-spacing 2px;
}
ol.roma {list-style-type: upper-roman}
ol.alpha {list-style-type: upper-alpha}
ol.malpha {list-style-type: lower-alpha}
li {margin: 1px}
ul{list-style-type: square}
p.at {border: double;
padding: 3px}
hr {width: 20%}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>横並びリスト</title>
<style type="text/css">
body {
font-size: 75%;
font-family: "ヒラギノ角ゴ Pro W3", "MS Pゴシック", sans-serif;
line-height: 1.5;
color: #333333;
background-color: #FFFFFF;
}
#navigation {
width: 720px;
}
#navigation ul {
list-style: none;
margin: 0;
padding: 0px;
height: 32px;
overflow: hidden;
border-bottom: 2px solid #CCCCCC;
}
#navigation li {
float: left;
width: 120px;
margin: 0;
padding: 0;
}
#navigation a {
display: block;
width: 100%;
padding: 6px 0 8px 0;
color: #FFFFFF;
background-color: #4C924D;
text-decoration: none;
text-align: center;
}
#navigation a:hover {
background-color:#297E27;
}
</style>
</head>
<body>
横並びリスト<br>
<div id="navigation">
<ul>
<li><a href="#">計算機の仕組み</a>
<li><a href="#">離散数学II</a>
<li><a href="#">プログラミングVA</a>
<li><a href="#">プログラミングVA</a>
<li><a href="#">メディアシステム制作2</a>
<li><a href="#">ゼミ</a>
</ul>
</div>
</body>
</html>