Prev | Current Page 231 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


11 Once an element has a layout, the hasLayout property can be queried by the rendering engine or
through scripting.
12 If a descendant element also has a layout it is responsible for sizing itself and any descendants,
but it is positioned by the ancestor element??™s layout.
CSS Layout and Formatting
The Ultimate CSS Reference 160
So why should any of us even care about the hasLayout property? Because many
Internet Explorer display inconsistencies which can be attributed to this property.
In most cases, the issues caused by elements that lack a layout are easy to spot: the
content is often misplaced or completely missing. For example, when an element,
such as a div, that doesn??™t have a layout by default, contains floated or absolutely
positioned content, it will often exhibit strange and buggy behavior. The types of
strange behavior that can arise are varied, and include such behaviors as missing
or misplaced content, or elements that fail to redraw fully while a window is moved
or scrolled.


Pages:
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243