左側に発言者右に発言をつける引用符(blockquote)デザインです。
引用符以外にも使えそうな感じですね。
There are two means of refuge from the miseries of life: music and cats.
<div class="cp_quote">
<blockquote cite="http://">
<p>There are two means of refuge from the miseries of life: music and cats.</p>
<aside>
Albert Schweitzer
</aside>
</blockquote>
</div>
*, *:before, *:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_quote {
position: relative;
width: 90%;
margin: 1em auto;
}
/* 引用 */
.cp_quote blockquote {
line-height: 1.5;
position: relative;
margin: 0 0 0 11em;
padding: 0 0 0 1em;
border-left: 1px solid #333333;
}
/* 引用元名 */
.cp_quote blockquote aside {
font-weight: bold;
position: absolute;
bottom: 0;
left: -10em;
width: 9em;
text-align: right;
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@CopypetJp More Info