- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Thu, 5 Aug 2004 12:25:10 +0300 (EEST)
- To: Helmut Steinle <hcs@mpe.mpg.de>
- Cc: www-validator@w3.org
On Thu, 5 Aug 2004, Helmut Steinle wrote: > how can I avoid that an image used as an radio button gets a border? By not using an image as a radio button (whatever you meant by that). > I use the code > > <INPUT type=image src="goto.gif" align="middle" border="0"> > > and it works, If it "works" as a radio button, it is an error. It is by definition an image submit button. By the way, it lacks essential attributes - what will happen on non-visual browsers, which have no clue of how it should be presented to the user? But validators won't help here, since formally the ALT attribute is not required (and cannot be required, since the way DTDs work, it would have to be required to _all_ INPUT elements). > but the validator says the border attribute is not valid. That is correct. This is really the only thing that pertains to validation. A validator simply checks whether a document complies with a formalized syntax. And this is a simple situation: no HTML specification allows, in its DTD, a BORDER attribute for an INPUT element. > I tried to overcome this problem by using css, but > > input {border-color:....} has no effect. Although this is off-topic, let me guess: You have tested the page on Netscape 4 and observed that the browser by default draws a border around an image submit button. (Besides, Netscape 4 has notoriously incomplete and buggy implementation of CSS.) The correct answer is "ignore it". It's questionable whether the feature is useful or not; and the few souls that still use Netscape 4 might be _accustomed_ to it, so that you only make things worse if you try to tune the presentation on that almost ignorable browser. -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 5 August 2004 05:29:15 UTC