HTML and CSS Reference
In-Depth Information
by providing the bgcolor attribute or a style attribute for those rows or
cells.
The background attribute, a nonstandard extension supported by all the
popular browsers, supplies the URL of an image that is tiled to fill the
background of the table. The image is clipped if the table is smaller than
the image. By using this attribute with a borderless table, you can put
text over an image contained within a document.
10.2.1.3. The border attribute
The optional border attribute for the <table> tag tells the browser to
draw lines around the table and the rows and cells within it. The default
is no borders at all. You may specify a value for border , but you don't
have to with HTML. Alone, the attribute simply enables borders and a set
of default characteristics. With XHTML, use border="border" to achieve
the same default results. Otherwise, in HTML or with XHTML, supply an
integer value for border equal to the pixel width of the 3D chiseled-edge
lines that surround the outside of the table and make it appear to be
embossed onto the page.
10.2.1.4. The frame and rules attributes
With Netscape 4, the border attribute was all or nothing, affecting the
appearance and spacing both of the frame around the table and of the
rule lines between data cells. Internet Explorer versions 4 and later and
Netscape 6 and later versions, as well as the popular Firefox and Opera,
let you individually modify the various line segments that make up the
borders around the table ( frame ) and around the data cells ( rules ).
The standard frame attribute modifies border 's effects for the lines that
surround the table. The default valuewhat you get if you don't use frame
at allis box , which tells the browser to draw all four lines around the
table. The value border does the same thing as box . The value void re-
moves all four of the frame segments. The frame values above, below,
 
Search WWH ::




Custom Search