| Mark Wiesemann 2007-01-19, 7:01 pm |
| Hi Sebastian,
Sebastian Schneider wrote:
> I am using HTML_QuickForm and the Tableless-Renderer. Why does Tableless
> put a an ordered list around the form elements and and a list element
> around each element?
>
> How do I change this behaviour and why is it the default one? Are there
> any advantages when formatting the form with CSS if you put the form's
> elements in a list?
The first releases of my renderer used <div> tags for the elements.
Before making the 0.4.0 release (with the goal to get an almost similar
layout as layout of the default renderer), I had a look at many
tableless implementations in the internet. Some of them used <div>s,
some of them used <ul>, and some of them used <ol>.
Before the 0.4.0 release I've got some complaints from various people
about too many <div>s, which made the understanding of the templates a
little bit hard. And as I didn't (and don't) like the <ul> idea (because
form elements are ordered), I chose to go the <ol> way.
My example stylesheet shows that it is not a big deal to get a
reasonable layout even with the usage of ordered lists. If you don't
like the idea behind this or if you want to modify the templates for
other reasons, you can use the various set...Template() methods of the
$renderer object. More information about these methods can be found in
the manual.
Regards,
Mark
--
http://www.markwiesemann.eu
|