Prev | Current Page 418 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

The top and
bottom positions are relative to the top border edge of the element??™s box. The left
and right positions are relative to the left border edge in a left-to-right environment,
or to the right border edge in a right-to-left environment. When specified as auto,
the position is that of the corresponding border edge.
SPEC
version initial inherited
CSS2, 2.1 auto NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL PARTIAL
Example
This style rule assigns a clipping region of
200?—100 pixels for the element with ID
"tunnel-vision". The upper left-hand
corner of the clipping region is at position
(50,50) with respect to the element??™s box:
#tunnel-vision {
width: 400px;
height: 200px;
clip: rect(50px, 250px, 150px,
??? 50px);
}
visible. Clipping may also occur at the edges of the browser window, or the margins
of the paper (when printing).
The default clipping region is a rectangle with the same dimensions as the element??™s
Layout Properties
The Ultimate CSS Reference 284
Note that the interpretation of positions specified in the rect() functional notation
changed between CSS2 and CSS2.


Pages:
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430