Home
/
配置・表示の指定
/ 下からの配置位置の指定 :
bottom
下からの配置位置の指定 :
bottom
::: 書 式 :::
bottom
: 下からの距離
::: プロパティ値 :::
距離には、下記の値を指定します。
単位付きの数値 => 「
単位について
」を参照
%
::: 解 説 :::
「
bottom
」プロパティで、下からの配置位置を指定します。
「
position
」プロパティと組み合わせて使います。
::: 対応ブラウザ :::
IE
Firefox
Opera
Chrome
Safari
8
7
6
5.5
5
3.5
3
2
1.5
1
10
9
8
7
6
2
1
4
3
2
1
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
[ 対応状況 : ○=対応、△=一部対応、×=未対応 ]
::: サンプル :::
[ サンプル画面
]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>スタイルシート(CSS) = 下からの配置位置の指定 =</title> <style type="text/css"> <!-- #id01 { position: absolute; bottom: 300px; left: 10px; } #id02 { position: relative; bottom: -300px; left: 310px; } #id03 { position: fixed; bottom: 300px; left: 610px; } p { background-color: #cccccc; width: 200px; height: 100px; } --> </style> </head> <body> スタイルシート(CSS) = 下からの配置位置の指定 = <p id="id01">「bottom: 300px」<br>left: 10px<br>absolute(絶対位置)</p> <p id="id02">「bottom: -300px」<br>left: 310px<br>relative(相対位置)</p> <p id="id03">「bottom: 300px」<br>left: 610px<br>fixed(絶対位置に固定)</p> </body> </html>
関連項目
CSSの基本
CSS機能別プロパティ一覧
CSSインデックス
配置・表示の指定
position
top
bottom
left
right
float
clear
z-index
display
visibility
overflow
Copyright (C) 2009 Html-Labs All Rights Reserved.
「position」プロパティと組み合わせて使います。