W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] Styling form controls

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sat, 30 Apr 2005 14:09:38 -0700
Message-ID: <c9e1266050430140959a9b738@mail.gmail.com>
I want to be able to style form controls.

For example 
<button style="display: block; border:1px solid
red;padding:0;margin:0"><div>content</div></button>

Safari is the only browser that renders the above example correctly: A
button with form element behavior, styled as specified.

Browsers should all do this, but none (except safari) do. Moz, Opera,
and IE do some sort of compromise (Moz & Op just blindly mimic IE to
some degree).

Perhaps display: auto would describe what most UA's do now; they just
use their own native-type of gui.

I want to use my gui and have the button funtion as a button. If I
want to submit or reset the form, I'll use the appropriate type
attribute.

What do page authors do now? Well, most will use something as
inaccessible as this w/o even blinking:
<div style="..."><a href="javascript:submitForm()"></div>

Javascript should not be relied upon for page submissions and its up
to the browser vendors to give page authors more flexibility.

So how about letting us style form controls.



-- 
http://dhtmlkitchen.com/
Received on Saturday, 30 April 2005 14:09:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC