Steven Szymczak wrote: > The resources you provided, as well as those in the Zend Devzone, are > helping me get my head around this. Thanks for that. > > The problem I'm having now is trying to figure out how to wrap two > inputs (username and password), as well as their Label decorators, in a > <div> block. I can get both inputs, and the password Label, but the > Username label always ends up outside the block. Trying to add an > opening <div> after the <dl> element only results in <dl> being > overwritten. > I'm not an expert in Form so I do my best with the css.
dl.zend_form{ margin: 0.5em 0.25em; line-height: 1.5em; vertical-align: middle; } .zend_form dt dd{ margin: 6px 12px; line-height: 1.5em; } .zend_form dt{ clear: both; float:left; margin-right: 6px; padding-left: 8px; width: 225px; background-color: transparent;} as the zend_form dl is inside a fixed div or fieldset it's ok. Also I've made a lot about label and input type ... But that's the way I've start > Jani Hartikainen wrote: >> I'd suggest you try using CSS to style the default markup to your liking. >> That is the easiest way out. >> >> I've also written an article about customizing zend_form markup with a >> set >> of decorators, you can see it here: >> http://codeutopia.net/blog/2008/08/07/zend_form-decorator-tips/ >> >> I think there's also something about them on Zend Developer Zone. >> >> >> Hope this helps. >> >> -- Bruno Friedmann