インデントのレンダリング
テキスト
ホーム
>
CSS2 Note
>
text-indent
> インデントのレンダリング
長さ
<style type="text/css"><!--
.eg1 {
text-indent:0;
}
.eg2 {
text-indent:1em;
}
.eg3 {
text-indent:2em;
}
--></style>
<div class="eg1">こんにちは</div>
<div class="eg2">こんにちは</div>
<div class="eg3">こんにちは</div>
パーセント値
<style type="text/css"><!--
.eg1 {
text-indent:0;
}
.eg2 {
text-indent:10%;
}
.eg3 {
text-indent:20%;
}
--></style>
<div class="eg1">こんにちは</div>
<div class="eg2">こんにちは</div>
<div class="eg3">こんにちは</div>
関連項目:
text-indent
2009/06/01発行 2009/06/01更新