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

css floating problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:551065browse

ef063bec93c7d2fd366870dafe54b63b
68dcb78b415f8735e9b97fd010e275b7

16b28748ea4df4d9c2150843fecfba68
16b28748ea4df4d9c2150843fecfba68

#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;}

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.

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