background-position プロパティ
背景画像の配置を指定
主な値
位置
left,center,righttop,center,bottom
%値
背景画像の表示開始位置をパーセントで指定。「左端% 上端%」
数値
背景画像の表示開始位置をピクセルで指定。「左端px 上端px」
(例)
■html
<body>
<p>Layout Rule</p>
</body>
■css
body {
background-image: url(../background-img.jpg);
background-attachment: fixed;
background-position: center center;
}
HTML&CSS: CSS。