[1日更新]中身ページのHTML・スタイルシート作成
こっちも、昨夜うつらうつら、半分意識落ちかかりながら作った。
あそこまで睡魔と闘いながらの作業したのは、いつ以来だ?かなり久しぶりだ。
左側のナビゲーションが平凡すぎてつまらないので、
ここはまた、後からいくつかパターンを作って、検討してみたい。
(DreamWeaverでテンプレート化しちゃうので、いくらでも一括変更可能)
スタイルシートも少し整理した。
スタイルシート自体は1つだが、「共通部分」「トップページ用のもの」「中身ページ用のもの」にわけて並び替えた。
もう少し複雑になってきたら、それぞれを「構成にかかわるもの」「装飾にかかわるもの」でさらにわけて整理してゆくと思うが、シンプルなデザインのサイトで、スタイルシートの定義の数も少ないので、こんなもんで管理上不都合はない気がする。
/* 共通 */body {
background: #FFFFCC url(../img/bg01.gif) repeat-y center;
text-align: center;
color: #333333;
font-size: 12px;
border-top: solid #333399 20px;
padding: 0px;
margin: 0px;
}a {text-decoration: underline;}
a:link {color: #993300;}
a:visited {color: #996600;}
a:active {color: #006600;}
a:hover {color: #006600;}#container {
width: 770px;
text-align: left;
font-size: 12px;
line-height: 120%;
padding: 0px 15px 10px 15px;
margin:0px auto;
}
#footer {
background: #FFFFCC;
text-align: center;
clear: left;
margin-top: 20px;
}
#copyright {
text-align: right;
font-size: 10px;
color: #999999;
}
h1, h2, h3,ul {
margin: 0px;
padding: 0px;
font-weight: normal;
}
td {
font-size: 12px;
line-height: 140%;
vertical-align: top;
}
.list01 {
list-style: inside url(../img/btn01.gif);
padding-left: 0px;
margin-left: 0px;
}
.list03 {
padding-left: 3px;
margin-left: 0px;
list-style: inside url(../img/btn01.gif);
}
.box01 {
border: dotted #333399 2px;
width: 570px;
padding: 5px 5px 5px 5px;
}
/* トップページ */
#toptitle h1 {
font-size: xx-small;
display: none;
}
#toptitle h2 {
font-size: 12px;
line-height: 120%;
margin-bottom: 10px;
}
#topcenter {
position: relative;
float: left;
width: 580px;
padding: 0px;
margin-right: 30px;
}
#topright {
position: relative;
float: left;
width: 160px;
}
#topitemphoto {
float: left;
padding: 0px;
margin-right: 10px;
}
#topnavi {
float: left;
padding: 0px;
margin: 0px;
}
/* 中身ページ */#title h1 {
font-size: xx-small;
display: none;
}
#center {
position: relative;
float: left;
width: 450px;
padding: 0px;
margin-right: 15px;
left: 185px;
}
#left {
position: relative;
float: left;
width: 170px;
left: -465px;
}
#right {
position: relative;
float: left;
width: 120px;
}
.sidebox {
width: 160px;
border: solid #333399 1px;
padding: 10px 5px 10px 5px;
}
.sidebox li {
line-height: 160%;
border-bottom: dotted #9999CC thin;
}
.sidebox a {
text-decoration: none;
}