I am just a step before tableless css design

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

I am just a step before tableless css design

Post by Sindarin »

but I used a table in my current project. 8O

Reason is that the site is dynamic but the template is not the same.
The main site style is a centered header | content | footer, quite simple. It validates correctly too.

Now I use a GET php switch to retrieve the current 'page' value. In the 'home' page the content has 2 columns, in the 'contact' page one and in other pages the layout gets more complex. So I resorted to using seperate html files which I included with php. In those I used tables because they were less time consuming to do the same with css and testing all those files with attaching different style sheets and such. I know this might be bad practice but I currently need ideas on how to make css and dynamic content work together.

So what's your take on this?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: I am just a step before tableless css design

Post by Maugrim_The_Reaper »

Not sure I entirely understood what you were asking? A good columned CSS design should be expandable to multi-column layouts. Some people go for a grid layout where you include column widths in the css class names (think something like the Blueprint CSS framework - which I admit to using since I'm a crap designer anyways ;)).
Post Reply