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
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:57:391218browse

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.

Statement:
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