Home > Web Front-end > HTML Tutorial > The difference between padding-top, margin-top and top_html/css_WEB-ITnose

The difference between padding-top, margin-top and top_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 11:57:39
Original
1206 people have browsed it

padding-top:10px; means that the content in the container is 10 pixels from the top of the container and is included in the container;

margin-top:10px; means the container itself The top of the container is 10 pixels away from other containers and is not included in the container;

top:10px; means that the top of the container itself is 10 pixels away from the top of the page.

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
Latest Issues
top wear top wear top wear
From 1970-01-01 08:00:00
0
0
0
What does valign=top mean?
From 1970-01-01 08:00:00
0
0
0
Relatively positioned top not working as expected
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template