Internet-Explorer-8 – IE8. Overflow hidden minimum width: Is this strange behavior solution?

If we have floated div A, and div B has overflow: hidden next to it – div B should take up all the available space next to the floating div. If we set the minimum on div B Width and the window size is too small to keep these two divs on the same line – div B should wrap under div A and get all available widths of the parent. We can work in all major browsers except IE8 Seeing this exact behavior, even IE7 handles it as expected. In IE8, the window size is small enough, so div B is wrapped under div A-div B does not occupy all available width but only its minimum width. The problem is : Is this a bug, or is it standard behavior? If this is an error, how can we solve it?

I have a test case here: http://jsfiddle.net/BJM4s/2/, adjust the window size to see its operation.

HTML:






float float float float float float float float float float float float float float float float float float float float float float float float float float float float float float float

CSS:

< p>

.parent {
overflow:hidden;
margin: 20px;
border: 1px solid;
}


.A {
float:left;
margin-right: 10px;
}
.B {
overflow:hidden;
min -width: 200px;
background: lime;
}​

seems Add display: table-cell to .B makes it behave. I didn’t make it at all Fully tested in his browser to see if it will cause problems. Setting it for IE8 may be the best (although it does not seem to affect IE7/9 or Firefox).

If we Already floating div A, and div B has overflow: hidden next to it-div B should occupy all the available space next to the floating div. If we set a minimum width on div B and the window size is too small to fit these two divs Stay on the same line-div B should wrap under div A and get all available widths of the parent. We can see this exact behavior in all major browsers except IE8, and even IE7 works as expected Deal with it. In IE8, the window size is small enough, so div B is wrapped under div A-div B does not occupy all available width but only its minimum width. The question is: is this a bug, or is it standard behavior? If this is an error, how can we solve it?

I have a test case here: http://jsfiddle.net/BJM4s/2/, adjust the window size to see its operation.

HTML:






float float float float float float float float float float float float float float float float float float float float float float float float float float float float float float float

CSS:

< p>

.parent {
overflow:hidden;
margin: 20px;
border: 1px solid;
}


.A {
float:left;
margin-right: 10px;
}
.B {
overflow:hidden;
min -width: 200px;
background: lime;
}​

It seems to add display: table-cell to .B makes it behave. I haven’t fully tested it in all other browsers to see if it causes problems. Setting it up for IE8 is probably the best (although it doesn’t seem to affect IE7/9 or Firefox ).

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4294 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.