お世話になります。
CakePHPで文章を追加しており、行間を空ける設定をcssでしましたが、cssの内容が反映されないです。
advice contracts_detail_historyというクラスを指定しています。
advice というクラスは他に使っているので、そのクラスの内容が反映されてしまいます。
こういう場合、入れ子という構造にするのかも考えてみて、
contracts_detail_historyというクラスをそれぞれ2つのファイルで記述してみましたが、
それでも反映されません。
【text.ctp】
<div class="box center"> <h1><?php echo h($campaign['Campaign']['title']); ?> 詳細nの表示</h1> -- 略 -- <?php if (!array_key_exists('status', $this->request->query)) : ?> <p class="advice contracts_detail_history">※テキストテキスト。</p>【style.css】
html,
body{
height: 100%;
}
body {
background-color : #fff;
color : #000;
font-size : 14px;
font-family : "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "メイリオ";
margin : 0;
}
-- 略 --
/*** テキストテキストのスタイル ***/
.advice contracts_detail_history {
line-height : 45px;
}
書き方について、お詳しい方、ご意見頂けませんでしょうか
よろしくお願いします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/04/29 08:33
2015/04/29 09:17
2015/04/29 10:33