<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính bottom khi dùng position fixed trong CSS</title>
<style>
#divthuong{width:100%; height:1300px; background:red;}
span{width:100px; height:30px; background:green; right:10px; z-index:1; line-height:30px; text-align:center; color:#fff}
</style>
</head>
<body>
<h1>Thuộc tính bottom khi dùng position fixed trong CSS</h1>
<p>Thuộc tính bottom trong position fixed sẽ canh cạnh dưới của phần tử HTML so với cạnh dưới của trình duyệt:</p>
<div id="divthuong"></div>
<span style="bottom:10px; position:fixed;">bottom:10px;</span>
<span style="bottom:50%; position:fixed;">bottom:50%;</span>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính bottom khi dùng position fixed trong CSS</title>
<style>
#divthuong{width:100%; height:1300px; background:red;}
span{width:100px; height:30px; background:green; right:10px; z-index:1; line-height:30px; text-align:center; color:#fff}
</style>
</head>
<body>
<h1>Thuộc tính bottom khi dùng position fixed trong CSS</h1>
<p>Thuộc tính bottom trong position fixed sẽ canh cạnh dưới của phần tử HTML so với cạnh dưới của trình duyệt:</p>
<div id="divthuong"></div>
<span style="bottom:10px; position:fixed;">bottom:10px;</span>
<span style="bottom:50%; position:fixed;">bottom:50%;</span>
</body>
</html>