Summary of the differences between Div CSS absolute and relative_Experience exchange

WBOY
Release: 2016-05-16 12:06:39
Original
1257 people have browsed it

To explain the relationship between the two in detail, you need to use examples, please look at the examples first:

The following is a quotation fragment:




Div CSS Example, Wayhome's Blog





position :absolute;

top: 5px;

right: 20px;


position: absolute;

left: 20px;

bottom: 10px;




position : absolute;

top: 5px;

left: 5px;



position: relative;

left: 150px;



width : 300px; height: 50px;




Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template