Prev | Current Page 312 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

A simple fix for this problem is to
set display to inline for the floated element.
Internet Explorer for Windows versions up to and including 7 differ in their handling
of margin collapse from the CSS2.1 specifications. See Collapsing Margins (p. 148)
for a detailed analysis.
If the value of the horizontal negative margins are greater or equal to the sum of the
width, padding, and borders of the element, the width of the element effectively
becomes zero. Some older browsers (for example, Mozilla 1.6 and earlier versions)
will appear to ignore the position of the element, much as they would an absolute
element. This causes issues where following elements may not correctly clear the
element in question. However, most modern browsers don??™t experience this issue.
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
Padding
These properties allow the author to control a box??™s padding??”the area between its
content and its border. You can also read The CSS Box Model (p.


Pages:
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324