Home > Web Front-end > HTML Tutorial > Solution to the invalid margin-top element in the div tag_HTML/Xhtml_Web page production

Solution to the invalid margin-top element in the div tag_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:38:38
Original
1360 people have browsed it

As title.

The question is very strange. The upper-level tag of the element is div, and attributes such as width and height have been set. However, when the margin is used to adjust the element, it does not take effect. Classmates’ experience suggests that the problem is solved by setting the parent element attribute of the element to

overflow:hidden;

.

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