Welcome to WebmasterWorld Guest from 54.196.77.14

Forum Moderators: not2easy

Message Too Old, No Replies

CSS and tabular data

     
10:43 pm on Jan 30, 2003 (gmt 0)

New User

10+ Year Member

joined:Jan 10, 2003
posts:11
votes: 0


Hi all,

I've been experimenting with ridding my pages of the *evil* ;) tables. CSS works beautifully for general layout purposes, but I have yet to find a good way to reproduce table cells and rows using CSS. I know that lots of people think tables are okay for tabular data, but I'd like to see how it can be done with CSS. Thanks!

10:47 pm on Jan 30, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 4, 2002
posts:5044
votes: 0


It can't easily be done.

Right tools for the job is the way to go. For fonts, colors, layout and other presentational formatting CSS is the way to go.

For tabular data, why use anything but a table? - Tables are not cheating, they were built specifically for this purpose and IMO should be used for it.

This doesn't mean that you can't format your table with CSS though! ;)

Nick

10:52 pm on Jan 30, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


There are several things you can do, depending on your site layout. you'll just have to experiment and figure out what works best for you.

Here are a few pointers though:

Try different float (left/right) and display (inline/block/list-item) settings .. Or, if your layout allows it, try absolute/relative positioning.

10:53 pm on Jan 30, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Well said Nick ;)