Thuộc tính right khi dùng position fixed trong CSS

Thuộc tính right khi dùng position fixed trong CSS

Thuộc tính right khi dùng position fixed trong CSS

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính right khi dùng position fixed trong CSS</title>
<style>
div{width:100%; height:300px; background:red; float:left; margin-bottom:10px}
span{width:100px; height:30px; background:green; bottom:10px; z-index:1; line-height:30px; text-align:center; color:#fff}
</style>
</head>
<body>

<h1>Thuộc tính right khi dùng position fixed trong CSS</h1>

<p>Thuộc tính right trong position fixed sẽ canh cạnh phải của phần tử HTML so với cạnh phải của trình duyệt:</p>

<div></div>
<div></div>
<div></div>

<span style="right:10px; position:fixed;" >right:10px;</span>

<span style="right:50%; position:fixed;" >right:50%;</span>

</body>
</html>
Thuộc tính right khi dùng position fixed trong CSS nằm trong bài viết Thuộc tính right trong CSS