aspose file tools*
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
Author

Width of Cells in Html Tables and CSS

Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 60

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.

XXX XXXXXXXXXXXX XXXXXX

XXXXX XXXXXXXXXX XXXX XXXXXXXXXXX

XXXXXXXXXXX

XXXX XXXXXXXXX XXXXXXXXXX XXXXXXXXX XXXX

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61601
    
  67

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: http://aspose.com/file-tools
 
subject: Width of Cells in Html Tables and CSS