Web Analytics Made Easy -
StatCounter Specifying the size of an image - CodingForum

Announcement

Collapse
No announcement yet.

Specifying the size of an image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Specifying the size of an image

    Hello, The code below is an extract of a piece of Java script that I dowloaded for a slideshow. The portion that is responsible for the position of the image is below. This places the image in its full size at the location of the script.

    <a href="javascript:warp()"><img src="plane0.gif" name="targetimage" border=0></a>

    How can I adjust the code such that the image occupies a specific width and height irrespective of the original image's size.
    Thank you

  • #2
    put the width and height attribute:

    <img src="plane0.gif" width="20" height="20">

    or better using CSS:

    <img src="plane0.gif" style="width:20px;height:20px">
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      Thank you That's done the trick

      Comment

      Working...
      X