Prev | Current Page 293 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Percentage values refer to the width of the containing block (p. 147). If the containing
block??™s width is negative, the used value is none.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Partial Full Full Full Full None None
The Ultimate CSS Reference 200
Safari??™s support for this property, when applied to positioned elements, is limited
to versions 2.0.2 or above.
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
Margins
These properties allow the author to control a box??™s margin??”the area outside its
border. You can also read The CSS Box Model (p. 142) for more information about
margins.
margin-top
margin-top: { length | percentage | auto |
inherit } ;
This property defines the vertical
distance from the top border edge of an
element to the edge of its containing
block, or the element that??™s vertically
adjacent above it. Its effect is also
dependent on other factors, such as the
presence of collapsing margins on
vertically adjacent elements.


Pages:
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305