Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts

    changing the border of an image

    please can someone help tell me how i change the border of the image from the code i am currently use.

    thanks



    Code:
    <a href="images/5.jpg" target="_blank" style="text-decoration: none"><img src="images/5.jpg" width="143" border="2"></a>

  • #2
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    2 ways:
    to style all images inside links:
    Place this code inside your head tags
    Code:
    <style>
    a img {
    border:5px solid #555555;
    }
    </style>
    to style just this image:
    Code:
    <a href="images/5.jpg" target="_blank" style="text-decoration: none"><img src="images/5.jpg" width="143" style="border:5px solid #555555;"></a>
    In both examples 5px is the width of the border, the border is solid(can be dashed,...), and the color is #555555.
    Why not thank me?

    http://adamsworld.name


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •