permaculture playing cards
The moose likes HTML, CSS and JavaScript and the fly likes Width of Cells in Html Tables and CSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Width of Cells in Html Tables and CSS " Watch "Width of Cells in Html Tables and CSS " New topic

Width of Cells in Html Tables and CSS

Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 70

This is going to sound dumb, but I want to create four 1 line tables. The 1st Line will contain 3 cells diffrent lengths , the 2nd line will contain 4 cells , the 3rd line wil contain 2 cells and the 4th line will contain 5 cells. The data that these cells contain will come from a database. Most of the data being brought back from the database wil be varchar, so the data for each cell will vary from record to record. I laid out a Format below, didn't copy well, my apologies. Can I use the width command , on each cell ? I read its being depreciated and I should use CSS. I've tried diffrent things and did many searches with no luck. Need some expert help.





Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63344

Doesn't look particularly tabular to me. I probably wouldn't use tables at all.

If you do, I do not believe that CSS replaces attributes like colspan. But I rarely use tables (except for tables) so I may not be completely on the ball re tables and CSS.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Width of Cells in Html Tables and CSS
It's not a secret anymore!