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

WBOY
Release: 2016-06-24 11:57:39
Original
1180 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template