May 14, 200917 yr Displaying a data grid using CSS without tables. This CSS help to getd idea. HTML CODE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>CSS Data Cells</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> ul.rows, ul.rows li { display: block; } ul.rows, ul.rows li, ul.columns { margin: 0; padding: 0; } ul.columns li { display: inline; margin: 0 1em; text-align: center; } </style> </head> <body> <ul class="rows"><li> <ul class="columns"> <li>(0,0)</li> <li>(1,0)</li> </ul> </li><li> <ul class="columns"> <li>(0,1)</li> <li>(1,1)</li> </ul> </li></ul> </body> </html>
May 14, 200917 yr Are you asking a question or making a statement? Also given you're displaying data in a grid, why aren't you using tables? - It's what they're made for!
Create an account or sign in to comment