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.
-- 
View this message in context: 
http://www.nabble.com/Zend_Form%3A-submit-and-reset-decorators-tp16234320s16154p16234965.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to