Previous Message
Next Message

submitting forms via Enter

Sent by Christian Heilmann on 21 September 2005 16:04

On 9/21/05, Thierry Koblentz [EMAIL-REMOVED]> wrote:
> David Feldman wrote:
> > I'm creating a number of forms with styled buttons. I've given up on
> > both <input> and <button> elements because of the variable-width
> > padding IE adds to them (as well as the 1px border IE puts around
> > their background images) and am using <a> tags instead, styled with
> > CSS and with href="javascript:..." attributes.
> What if JS is disabled?
> I'd use JS to write two CSS rules: one for the button you want to hide and
> one for the one you want to show. Doing so if there is no script support,
> atleast there is a valid submit button.
> To hide the button, did you try z-index:-1?

Even better: replace the button with a link when and if JavaScript and
DOM is available.

How is that a CSS issue?

Chris Heilmann 
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: