CSS(スタイルシート)1

はじめに

fontスタイル
fontスタイル
font-size
:expression()(IEのみ)
font-weight
font-familyサンプル
<body>のfontスタイルの継承
textスタイル
text-align(テキスト配置)
text-justify(IEのみ)
color(テキスト色)
text-decoration(テキスト装飾)
text-indent(インデント設定)
line-height(行間設定)
line-heightで%指定
letter-spacing(文字間隔)
word-spacing(英単語の間隔)
:first-letter/:first-line
Textの折り返し処理(IEのみ)
テキストの縦書き表示(IEのみ)
ルビ(ふりがな)を付ける(IEのみ)
スタイル付きのルビ(IEのみ)
ルビをScriptで操作(IEのみ)
MS-IMEを自動設定(IEのみ)
margin/padding
外部余白スタイル(margin)
margin-left/right
marginでの%使用例
要素間のmargin
<body>タグのmarginテスト
内部余白スタイル(padding)
borderスタイル
borderスタイル(枠線)
borderスタイルに対応タグ
border-width/style一覧
border-width
border応用いろいろ
ページ全体に枠線
borderでボタンを作る
動くborder幅
点滅するborder
borderColorの応用
floatスタイル
ブロック要素の配置
テキスト配置に利用
floatとmarginの相性
活用例(ページ左に見出し段組)
background(背景)スタイル
background-color(背景色)
background-color応用1
background-image(背景画像)
background-repeat
background-attachment
background-position
動く背景(1)
動く背景(2)
例:1[background]
例:2[background-repeat-y]
例:3[background-repeat-x]
例:4[background-repeat-x]
背景にGIFアニメを使う
visibility/display
visibilityスタイル
displayスタイル
display:表に活用
display:表に活用2
位置指定(position)
relativeのブロック要素のtopは位置
relativeのブロック要素のleft配置
relativeのインライン要素
absoluteのブロック要素
absoluteのインライン要素
位置指定のtop/left
位置指定のbottom/right
位置指定(offsetParent)
offsetParentプロパティとは
absolute親内での配置
relative親内での配置
z-indexスタイル
重ね順変更:1
重ね順変更:2
<A>タグに使う擬似クラス
擬似クラスの基本
背景画像を使う
画像リンクの活用
その他
listスタイル
cursor(カーソル形状の変更)
<option>タグのstyleテスト
印刷用のスタイル