Everything You Know About CSS Is Wrong! by Rachel Andrew & Kevin Yank

Everything You Know About CSS Is Wrong! by Rachel Andrew & Kevin Yank

Author:Rachel Andrew & Kevin Yank
Language: eng
Format: mobi, epub
Publisher: SitePoint Pty. Ltd.
Published: 2008-08-16T04:00:00+00:00


With the top and bottom properties both set to zero, the cell will stretch to fill the full height of the table, simulating a row span. Depending on the needs of your layout, you could use different values for top and bottom, or even set the cell’s height directly to achieve other row-spanning layouts.

You also need to specify the width of the cell. Usually, the easiest way to do this is just to set its width property, but depending what you know of the dimensions of surrounding table cells, you could also do this by setting left and right.

Since the positioned cell doesn’t actually span multiple rows of the table, the table must still contain a corresponding cell in each of the other rows. These cells are simply empty placeholders, though; note the div with class empty cell in the HTML code above. The function of this cell is to hold open the space that will be occupied by the “spanned” cell, so we must ensure its width matches the width we specified for the rowspanned cell:

.cell.empty {

width: 100px;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.