Home > Web Front-end > HTML Tutorial > Old novice, please ask about DIV layout_html/css_WEB-ITnose

Old novice, please ask about DIV layout_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:49
Original
924 people have browsed it

div layout

Why does the footer run up? As shown in the picture


Fixed broadband and the page in the play








Reply to discussion (solution)

What is the footer you are talking about?

I tried it and it works correctly?
It’s the red part “This is "My feet" was originally the footer. Now run to the left.

Oh, this is because you did not clear the floats

Both left and right are floating divs, and the following divs will be placed under them (and placed as close as possible)

Add a

before the foot div or wrap left and right with a div.

In addition, there is a small problem with your box model. The id of the foot is written as "if"



http://www.colg.biz/demo/d1.html


Ha, it turns out that my id="foot" was written as if="foot"
Just change it. DW has no error correction function, so it really fails.

In addition, using a div to wrap the floating left and right is also a good method. Thank you

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