背景画像の表示位置の設定ブロックの背景に設定した画像の表示位置を設定するには、 background-positionプロパティを設定します。 background-position: 横の表示位置 縦の表示位置 background-position: 横の表示位置 background-positionプロパティは、 背景画像のウィンドウの中での表示位置を指定します。 表示位置には次のような設定ができます。
body { background-image: url(bgimage.gif); background-repeat: no-repeat; background-position: center center; }
|