css: tableless table

by prettyscripts on 2008-05-23 12:22:59 • Leave a comment »

csshtml

a table layout can be achieved without <table> in html, with <div> and css..col { width: 200px; float: left; }<div> <div class="col">row 1, col 1</div> <div class="col">row 1, col 2</div></div&… more »

Tags: css, html, span, table

css: show table cells

by prettyscripts on 2008-05-22 10:33:51 • Leave a comment »

phpcsshtml

for bordered tables, you can visually see the cell is not displayed (ie no border around the cell) if it has no value. it looks ugly. the work around is usually assigning a space ‘ ’ to the cell in html code. in css, you can show the cell with emp… more »

Tags: cell, css, ie, table