--
Mike Scott
mi...@plokta.com
PNN has frequently updated news & comment for SF fandom
http://www.plokta.com/pnn/
-dave
Mike Scott <mi...@plokta.com> wrote in message
news:37b4fcff...@news.demon.co.uk...
[ 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 )
> IMG { border=0px; }
Oops please excuse my typo. The correct style is of course
IMG { border:0px; }
:- Bernhard )
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)?