HTML and CSS Reference
In-Depth Information
if there is room to do so. The value left prevents contents from being
placed adjacent to a floating element on its left; right prevents place-
ment on the right side of a floating element; and both prevents the tag's
contents from appearing adjacent to any floating element.
The effect of this style is the same as preceding the tag with a <br> tag
with its clear attribute set. Hence:
h1 {clear: left}
has the same effect as preceding every <h1> tag with <br clear=left> . The clip property
Normally, the content of an element is completely visible within the dis-
play space of the element. The clip property defines a viewing window
within an element's display space, letting you hide unwanted elements
and focus attention on some area or aspect of the content.
The default value of the clip property is auto , meaning that the viewing
window matches the box of the element. Instead, you may specify a
shape that creates a distinct viewing window into the element's display
area. Currently, the only shape supported by CSS2 [*] is a rectangle, de-
noted by the rect keyword. For example:
[*] Presumably, future versions of the standard will expand to include other shapes.
p {overflow : hidden;
clip : rect(15px, -10px, 5px, 10px) }
The four values define the top, right, bottom, and left edges of the clip-
ping rectangle. Each value is an offset relative to the box edges defined
for the element. So, in this example, the top of the clipping area is 15
Search WWH ::

Custom Search