table to div conversion

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

table to div conversion

Post by itsmani1 »

hi every one !

i want to make tables using css => means instead of using html tags like TR TD and others i want to define them in a .css file and then use them.
have any one experienced that?

Regards.


feyd | attempted to make topic title a bit more descriptive
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

To get started:

If you have tabular data, you should use table, th, tr an td.

If it is not tabular data, and want to display like data in tables is displayed you should use CSS.


Now down to bussines:

There are plenty of sites that will explain you how to achieve something that looks like tables with CSS. If i remember well (i'm not a designer), there is a book "tricks of the css gurus" by zeldmann...

Imho, i see people try to simulate the table layout with css, but end up adding a lot of <div> to accomplish that. So instead of having dirty table tags they now have dirty div tags.... In that case they would have achieved the best/fastest result with using table tags from the start.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

please choose better topic subjects itsmani1, "need help" does not tell us much of anything, as everyone here tends to "need help" :roll:
Post Reply