W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2000

RE: How do I use CSS to fake a button?

From: Dave J Woolley <DJW@bts.co.uk>
Date: Wed, 19 Jul 2000 11:44:48 +0100
Message-ID: <81E4A2BC03CED111845100104B62AFB5824815@stagecoach.bts.co.uk>
To: w3c-wai-ig@w3.org
> From:	Bruce Bailey [SMTP:bbailey@clark.net]
> 
> Is there a way to use CSS to make hypertext look like a button?  I know
> how to change the
> appearances of links, but my experimentation has not gotten me anything
> that comes close to
> approximating a "raised three dimensional" look that users have come to
> expect of graphical
> image buttons.
> 
	[DJW:]  This is an area where HTML got it wrong.  There is a button
	element, which does this, but there is no fallback mechanism for
this.
	Moreover IE4 implements is wrongly (it fails to send the value when
	used as a submit button - Lynx gets this right, even though it is
	not graphical!).

	Simulation with CSS doesn't work quite the same as a real button, 
	because buttons can remain active after they are released (in
framesets,
	at least).  Also Netscape 4 seems to apply the style to the next
block
	element, typically resulting in a zero sized graphical button below
and
	to the right of the intended button - this is not quite that
predictable.
Received on Wednesday, 19 July 2000 06:52:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:49 GMT