Found in version 8, working fine in 7 & other browsers (even IE),
I have a table with a declared width (tried with a declaration in css/inline/attribute) and a float:right. It seems that in the page this table width takes up the entire available space (looking up with the developer instrument confirms that the table takes 100% width while the tbody takes only the width declared before)
Othe开发者_开发技巧r floating elements near the table are cleared over or under it.
removing the float declaration the table width returns as declared
any idea ?
This might be a bug. I have a DIV in Chrome 8 that should take up 100% of the container width, but does not unless specifically declared.
Doesn't solve the question re why floats would behave like that (it does sound weird), but have you considered using display:inline-block;
instead of using floats?
I have a float and a declared width, but the content that should be to the left of a floating right table is clearing to below the right table. This looks like a bug in Chrome 8.
精彩评论