Border round image

Discussion in 'HTML' started by Otuatail, Aug 1, 2004.

  1. Otuatail

    Otuatail Guest

    Can anyone tell me a better way of doing this.
    I have an image. But when I put it inside an anchor it places a blue border
    around it. I thought it was because it was in a table, but I have copied it to
    a new blank html page. Here is the short code. I have placed "C" /* and */
    around it to prevent any browser interfearing with it.

    /*<a onmouseover="document.images[0].src='images/Chapel_LH.jpg';"
    onmouseout="document.images[0].src='images/Chapel_L.jpg';"
    href="tour_chapel.html">
    <img src="images/Chapel_L.jpg">*/


    Desmond.
     
    Otuatail, Aug 1, 2004
    #1
    1. Advertising

  2. Otuatail wrote:
    > I have an image. But when I put it inside an anchor it places a blue
    > border around it.


    Yes, and text that has an anchor placed around it gets underlined. You can
    change the border with the CSS border property.

    <http://www.w3.org/TR/CSS2/box.html#border-properties>

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Aug 1, 2004
    #2
    1. Advertising

  3. Otuatail

    Karl Groves Guest

    "Otuatail" <> wrote in message
    news:...
    > Can anyone tell me a better way of doing this.
    > I have an image. But when I put it inside an anchor it places a blue

    border
    > around it.


    Please show the common courtesy of searching a group's archives before
    asking a question that is asked no less than 3x a week.

    -Karl
     
    Karl Groves, Aug 1, 2004
    #3
  4. Otuatail

    Sid Ismail Guest

    On 01 Aug 2004 13:08:25 GMT, (Otuatail) wrote:

    : Can anyone tell me a better way of doing this.
    : I have an image. But when I put it inside an anchor it places a blue border
    : around it.


    Great - now the user knows it's a link.

    Sid
     
    Sid Ismail, Aug 1, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    2,270
    tshad
    Jan 31, 2005
  2. Markus
    Replies:
    3
    Views:
    3,273
    Arved Sandstrom
    Jun 14, 2004
  3. Replies:
    0
    Views:
    1,102
  4. OliverMarchand

    Float.round - should it be round-to-even

    OliverMarchand, Apr 12, 2006, in forum: Ruby
    Replies:
    2
    Views:
    226
    OliverMarchand
    Apr 12, 2006
  5. cerr

    reading file round and round

    cerr, Mar 19, 2010, in forum: Perl Misc
    Replies:
    6
    Views:
    185
    Peter J. Holzer
    Mar 20, 2010
Loading...

Share This Page