Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Borders on <INPUT TYPE=IMAGE>

0 views
Skip to first unread message

Mike Scott

unread,
Aug 13, 1999, 3:00:00 AM8/13/99
to
Is there an HTML 4 compliant way to stop Netscape from putting a blue
border round an image used to submit a form? Setting the attribute
BORDER=0 works, but is non-compliant.

--
Mike Scott
mi...@plokta.com
PNN has frequently updated news & comment for SF fandom
http://www.plokta.com/pnn/

Dave Solimini

unread,
Aug 17, 1999, 3:00:00 AM8/17/99
to
if it works, why complain? :-D

-dave

Mike Scott <mi...@plokta.com> wrote in message
news:37b4fcff...@news.demon.co.uk...

Bernhard Schandl

unread,
Aug 18, 1999, 3:00:00 AM8/18/99
to
On Tue, 17 Aug 1999 20:05:15 -0400, "Dave Solimini" <ds...@prodigy.net>
generously decided to share with us ...:

[ quoting re-arranged ]

> > Is there an HTML 4 compliant way to stop Netscape from putting a blue
> > border round an image used to submit a form? Setting the attribute
> > BORDER=0 works, but is non-compliant.
>

> if it works, why complain? :-D

Maybe because one wants to write HTML markup which may be parsed by
future browsers, too. If there are tags and attributes which are
deprecated (and so the BORDER attr is), it is best not to use them
because there are reasons that they are deprecated. For the BORDER
attribute, the reason is that this is completely presentational markup
and has nothing to do with any kind of content. It's a presentational
attribute which has been delegated to style sheets and out of HTML.

Btw, the method for suggesting the absence of the image border with
CSS is a

IMG { border=0px; }

rule. But be careful, the border is usually displayed when the image
is a link, therefore it makes very sense to let it be displayed.

:- Bernhard )

Bernhard Schandl

unread,
Aug 18, 1999, 3:00:00 AM8/18/99
to
On Wed, 18 Aug 1999 08:23:01 GMT, b.sc...@atc.co.at (that's me)
suggested a css rule with a typo ...:

> IMG { border=0px; }

Oops please excuse my typo. The correct style is of course

IMG { border:0px; }

:- Bernhard )


Mike Scott

unread,
Aug 18, 1999, 3:00:00 AM8/18/99
to
On Wed, 18 Aug 1999 11:58:10 GMT, b.sc...@atc.co.at (Bernhard Schandl)
wrote:

Unfortunately, this doesn't work with Netscape 4 (haven't tried 4.5),
let alone 2 & 3 which don't even theoretically support stylesheets. And
since IE doesn't draw the border anyway, this means that while it's
valid CSS it's also entirely useless at the current state of the art in
browsers. Does anyone have a valid way of doing this that actually works
with Netscape 4 (I'd be prepared to leave the border in 2 & 3, which
aren't that widely used any more)?

0 new messages