On 3/23/08, LaggyLuke <[EMAIL PROTECTED]> wrote: > > > > Vincent-20 wrote: > > > > On 3/23/08, LaggyLuke <[EMAIL PROTECTED]> wrote: > >> > >> > >> What is the simplest and correct way of rendering Submit and Reset > >> buttons > >> on > >> a single row of the form, not one below the other? > >> I've played with decorators and fieldsets for awhile, but ended up with > >> quite messy code. > >> I assume that such an easy task should have some simple solution I'm > >> missing. > > > > > > As this has to do with the looks of your website, you should do this in > > CSS, > > by e.g. setting display: inline; . > > > > Best, > > -- > > Vincent > > > > > > > Thanks for the tip - this solution is simple, but not completely correct. > You're right that the look of a website should be specified by CSS, but > HTML > part should still be semantically correct. > With default decorators it looks like this (whitespaces changed for > readability): > <dt></dt> > <dd><input type="submit" name="submit" id="submit" value="Save"></dd> > <dt></dt> > <dd><input type="reset" name="reset" id="reset" value="Reset" /></dd> > > What I want is to move these buttons from <dl> altogether, or at least put > them in a single <dd>. > Sure thing, I'll use CSS to style them as soon as I get semantically > correct > markup in HTML. >
Ah, then you'll need to replace the standard decorators [1] with your own [2], IIRC. [1] http://framework.zend.com/manual/en/zend.form.standardDecorators.html [2] http://framework.zend.com/manual/en/zend.form.decorators.html -- Vincent
