- From: Irene Vatton <Irene.Vatton@inrialpes.fr>
- Date: Thu, 7 Dec 2006 18:25:48 +0200
- To: Robin Whittle <rw@firstpr.com.au>
- Cc: Amaya Discussion List <www-amaya@w3.org>
On Wednesday 01 November 2006 04:37, Robin Whittle wrote:
> I observe the following browser behavior.
>
> MSIE 6, Mozilla 1.7.13, Firefox 2.0:
>
> A simple image with a link such as:
>
> <a href="blah.html"><img alt="zzz" src="yyy.jpg" />
>
> displays with a two-pixel border, in blue, unless the link has been
> visited in which case it is purple.
>
> I found that using:
>
> style="border: 0px none "
>
> in the <a ..> tag did not remove the border.
>
>
> Amaya 9.52, Opera 9:
>
> Displays no border.
Amaya and Orera are right. By default there is no border.
> Since I often want to create images with links and no borders, in the
> past I used
>
> border="0"
Within a strict HTML document the border attribute is forbidden.
A global style rule "img {border:0}" is probably a better solution.
> within the image tag. I can do this with Amaya by selecting the image
> and using Tools > Attributes > Border with the default 0.
>
> I can also have:
>
> style="border: 0px none "
>
> in the image tag - and creates no border for all browsers.
>
> It would be nice to have an option for this being applied every time I
> create a link to an image, or perhaps every time an image is created.
> Probably the style approach would be more future-friendly.
A global style rule "img {border:0}" should be probably a better solution.
> Also, since it is good practice to specify image height and width in the
> source, to help the browser lay out the page, it would be nice if Amaya
> automatically put these in, after finding out the dimensions from the
> image file itself.
>
> - Robin
--
Irène.
-----
Irène Vatton INRIA Rhône-Alpes
INRIA ZIRST
e-mail: Irene.Vatton@inria.fr 655 avenue de l'Europe
Tel.: +33 4 76 61 53 61 Montbonnot
Fax: +33 4 76 61 52 07 38334 Saint Ismier Cedex - France
Received on Thursday, 7 December 2006 16:27:54 UTC