The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help replacing a long table with css Re: Help replacing a long table with css


I’m sorry Egghead but can’t supply a link – site is down until I’ve completed the redesign.

Hi Doc – yes possibly tables are the best way. Have been experimenting all day.

Don’t want thousands of <divs> to replace thousands of <tr> etc tags!

What I have at the moment is a messy work around:

3 columns,
paragraph styles so a paragraphs background colour takes up the width of the column it’s in to fake the look of table row colours.

looks fine as long as each paragraph fits on one line, if the text goes on two lines it looks wrong because of the inability to vertical align text as you would in a cell . Also I have to visit each of the divs in turn to type in the paragraph for each column which might get confusing once there’s hundreds of paragraphs in a column. The url in column 1, row 67 must match the text in column two line 67 and column 3 line 67 etc

The good thing is the file size is much lighter as there’s just the two styles for the paragraphs of different colours and then it’s just a long list of <p> tags in each div and no <tr> tags