Re: QuickForm and TableLess

From: Date: Fri, 01 Apr 2005 17:32:33 +0000
Subject: Re: QuickForm and TableLess
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18477@lists.php.net to get a copy of this message
On Apr 1, 2005 7:13 AM, Jacques Nunes <iacques@yahoo.com.br> wrote: > Justin Patrin escreveu: > > > On Mar 31, 2005 8:11 PM, Jacques Nunes <iacques@yahoo.com.br> wrote: > > > >> Anybody know how to implement QuickForm and TableLess? > >> > > > > What''s TableLess? > > > > If you mean how do you use QuickForm without tables, you probably want > > to use a template system like Smarty or IT. > > > > 1) What is Tableless? > Tableless isn't a technology, nor a programming language, much less an > application! Tableless is a rather misleading name for a method of > building clean, accessible and standard complaint websites. > Notwithstanding, "tableless" is what best describes the main concept > towards a more accessible web: the abolishing of tables as a means of > designing web sites. > We use CSS <http://www.w3.org/Style/CSS/> to format the > information > contained in the text markup files or, if you prefer, (X)HTML files. > Clarifying: We don't use the infamous tables to structure the website. > For this we use exclusively CSS > <http://www.w3.org/Style/CSS/>. We > didn't get rid of the tables. In the tableless method, all the tags are > used semantially, i.e, each tag has its own role. If you want to have an > italic text, you should use the <i></i> tag. Want a paragraph? Use > <p></p> Got it? So, if you want to display tabular data , e.g. a list of > products with their prices, names, if it's available in the stock; you > should use tables. Therefore, using tables to display tabular data is > right but never use them to layout structuring. > More in: http://www.tableless.com.br/en/ I know all about CSS and not using tables for layout. The way you typed it it sounded like a package of some kind. I have tried to use CSS layouts myself but it's *always* a pain. I can never get it to do the right thing, especially in multiple browsers. Lately I have just given up and went back to tables as I'm spending an inordinate amount of time trying to hack my CSS to make my layouts work. With tables I can usually get a layout working in less than a quarter of the time. Don't get me wrong, I like the idea of CSS and doing layouts correctly, but if it's taking me so much longer to do something so simple I just don't have the time to deal with it. I still use CSS formost of my styling, but doing all of my layout with CSS is pretty much beyond me. > > 2) I already use Template_Sigma with table designs, but i like to use > the follow elements with css that i dont see in QuickForm: > a) A legend attribute; > b) A html label attribute (not embended with input...); > c: A fieldset attribute; QF uses tables by default. You're welcome to create your own renderer which doesn't use tables. If you can make a decent tableless renderer with a decent example stylesheet I'm sure people would love it to bits. -- Justin Patrin

« previous php.pear.general (#18477) next »