As a point for discussion, CSS-powered Layouts, who's gunna use them? :)
Printable View
As a point for discussion, CSS-powered Layouts, who's gunna use them? :)
Look around you - everybody is :) Look at the source of this page, for example ...
No no, layouts, not just colour scheme and font styles, actual positioning.
IIRC W3C says the <body> should only contain the content of a page, not how it's displayed. CSS-layouts are a rather extreme use of this.
Oh, I thought this was general knowledge... Look at http://jetser.its-s.tudelft.nl/~guus/ for example, it's something I was working on a few weeks ago. It's in dutch, and it's ugly as hell, but it's done primairily with CSS positioning.
Ok, so anyone else here keep up with the times? ;)
I mainly use it for styling but i have been known to use it for content !
I'be been using nothing but actual positioning of DIVs since like -99. IE 4.0 supported it and that was enough for me.Quote:
Originally posted here by Proud
As a point for discussion, CSS-powered Layouts, who's gunna use them? :)
I must admit while CSS is great for colours and table styles etc, I've only used it in positioning on one site, and it was generated by JS to have a funky off-center effect :)
thats all i do use it for, so i can do my colour schemes really easily ::)Quote:
CSS for positioning I use on and off. Mainly, I use it for things like, divisions that need to be equally spaced on a page, but is generated out of some kind of backend data files (database, flatfile, etc) and generally when there's lots.
There's a lot of nifty stuff you can do with CSS positioning, it's worth checking out.
I mainly use it for sizing divisions and etc.
I use CSS mainly for font and form formatting.
I prefer specifing positioning as attritubutes to whatever tag that it affects, beit tables or whatever...
That's a nice looking page, Guus.
Ouroboros
I like CSS for positioning, but sometimes if you're going to use a single table layout over and over (like each post on a forum) I wonder if a PHP class would work better. Each post being an object. Any thoughts?
I've never used PHP, but can't you use ServerSideIncludes as a template?
In perl forums there's post templates anyway, and they're still given CSS classes to allow easy customising. In PHP forums you could use an object to do the same thing I guess :)
I've written a few forum-esque PHP applications and I usually just write one PHP script to add certain table tags to a page and then add the information in it, so, of course, the same exact tags are written over and over again.
I like the CSS layouts, personally, there's a lot of cool stuff that you can do with them, and I prefer them over the table layouts I've created in the past. I think it also gives the page more of a professionally designed look, much neater...and it's fairly easy.