Prev | Current Page 406 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

158)
Opera 9.2 and prior versions treat the value collapsed as hidden for all elements.
Safari versions up to and including 2.0 don??™t support the value collapse.
275 Layout Properties
top
top: { length | percentage | auto | inherit } ;
For absolutely positioned boxes, this
property specifies how far the top
margin edge of the box is offset below
the top padding edge of its containing
block. However, should the value for
top be auto (the initial value), the top
margin edge of the box will be
positioned at the top content edge of its
containing block.
For relatively positioned boxes, this
property specifies how far the top edge of the box is offset below the position it
would have had in the normal flow.
Example
This style rule makes the element with ID
"logo" generate a relatively positioned box
that??™s shifted down by ten pixels:
#logo {
position: relative;
top: 10px;
}
Compatibility
SPEC
version initial inherited
CSS2 auto NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
Layout Properties
Opera Safari Firefox Internet Explorer
9.


Pages:
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418