Home > Web Front-end > HTML Tutorial > css floating problem_html/css_WEB-ITnose

css floating problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:55
Original
1086 people have browsed it







#a{
height:auto!important;
Height:800px;
min-height:800px;
width:1015px;
margin:0 auto;
border:1px solid #B10000;
}

#b{
height:auto!important;
height:600px;
min-height:600px;
width:831px;
border:1px solid #DFDFDF;
float:left;
}

Could you please tell me how can I make b open when the content of b is larger than 800px?
Please add Div OK, as long as it can be stretched.


Reply to discussion (solution)

What does opening a mean above?

a.width = b.width 215?

does not mean, it is the height

Only set min-height:800px;,,, height in a. Do not write. . .

#a{	height:auto!important;        height:800px;       min-height:800px;width:1015px;	margin:0 auto;	border:1px solid #B10000;overflow:auto;}
Copy after login

Give it a try. . . . .

#a{
height:auto!important;
Height:800px;
min-height:800px;
width:1015px;
margin:0 auto;
border:1px solid #B10000;
overflow:auto;
}

Specifications are important!
There is floating, shouldn’t it be cleared?
Clear the float and the problem is solved. There is no need to write overflow or anything like that.

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