http://q.hatena.ne.jp/1364625122
上記の関連質問です。
添付の画像を見て頂きたいのですが投稿ページ
http://dca-labo.info/demo8/?p=256
のコンテンツエリアの表示順番なのですが
・パンくずリスト
・タイトル
・投稿年月日
・本文
にしたいのですがstyle.cssの修正箇所をご教授お願い致します。関連箇所の設定は下記です。
/* Singular content styles for Posts and Pages */
.singular .hentry {
border-bottom: none;
padding: 4.875em 0 0;
position: relative;
}
.singular.page .hentry {
padding: 3.5em 0 0;
}
.singular .entry-title {
color: #000;
/* font-size: 36px; */
font-size: 26px;
font-weight: bold;
/* line-height: 48px; */
line-height: 30px;
}
.singular .entry-title,
.singular .entry-header .entry-meta {
順番については、style.css の以下の position: absolute; を無効にすれば、期待通りになります。
.singular .entry-header .entry-meta { /* position: absolute; ★ これを無効にする */ top: 0; left: 0; }
後は、行間の調整を、クラス entry-title にからむ以下の定義のどこかで調整する、という感じになると思います。
.entry-title { clear: both; color: #222; /*20130322修正*/ /* font-size: 26px; */ font-size: 20px; font-weight: bold; line-height: 1.5em; /* ★ こことか */ padding-bottom: .3em; /* ★ こことか */ /*20130327修正*/ /* padding-top: 15px; */ padding-top: 0; /* ★ こことか(広げるなら) */ /* margin-left:2% */ } .singular .entry-title { color: #000; font-size: 36px; font-weight: bold; line-height: 48px; /* ★ こことか */ }
投稿年月日と本文を、更に近づけたければ entry-content の padding-top を小さくすることで対応できます。
.entry-content, .entry-summary { padding: 1.625em 0 0; }
いつもご丁寧な回答ありがとうございます。
2013/04/03 22:09:44解決しました。