CSSでの文字、フォント、背景のデザイン
h6{ /*colorプロパティは文字列の色を指定する*/ /*値には色コード(16または10進数)または色名を指定する*/ color:#ff0000; /*text-alignは水平方向位置を指定する*/ /*値は left,center,right,justify*/ text-align:center; /*text-decorationは文字列の装飾を指定する*/ /*値には none,overline,line-through*/ text-decoration:overline; /*font-familyはフォントの種類を指定する*/ /*値にはフォント名と総称フォントファミリー名を指定する*/ font-family:"MS P明朝","Times New Roman",serif; /*font-sizeはフォントサイズを指定する*/ /*値には相対指定と絶対指定ができる*/ /*相対指定の単位 px,em,ex,%*/ font-size:140%; /*font-weightは文字列の太さを指定する*/ /*値には nomal,bold,bolder,lighter,100-900の値*/ font-weight:bold; /*font-styleは文字列の斜体を指定する*/ /*値には nomal,oblique,italic*/ font-style:italic; /*background-colorは背景色を指定する*/ /*値には色コード、色名、tranparent(透明色)を指定する*/ background-color:#ccff66; /*background-imageは背景イメージを指定する*/ /*値にはファイルのパスを指定*/ background-color:url("kabe.gif"); /*background-repeatは背景イメージの繰り返し方法を指定する*/ /*値には repeat,repeat-x,repeat-y,no-re;eatを指定*/ background-repeat:repeat-x; /*background-positionは背景イメージの位置を指定する*/ /*値には、水平方向 left,center,right 垂直方向 top,center,bottom、または数値を指定する*/ background-position;50px 30px; }