Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tables to CSS

Status
Not open for further replies.

waiterm

Programmer
May 17, 2004
236
GB
Hi,

I'm currently dynamically building my tables from a recordset. i.e. multiple columns and as many rows as in the recordset with column headers. However, in a bid to move my sites over to CSS I'm finding it difficult to reproduce anything as efficient as the tables used to produce. I understand I can set specific widths for each table cell, and base the positioning on the left margin, however, in some case I actually want an entire column to be as wide as the widest cell? Where do I start?

Thanks in advance...



Rob Waite
 
If the data you are showing is tabular data (example: financials, calendar) then you are best advised to render them in a table! If the data you are showing is not semantically tabular, then you are encouraged to avoid using the <table> tag. As you are experiencing... the markup is often greater if you try and use DIVs etc instead.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top