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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Resizing image Percent (%) in HTML.

    Hi, How do I resize an image in HTML by percent (%)?

    Thanks!

  • #2
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <img src="url of picture" height="x%" width="x%">

    I dont know why youd want to use percent though, pixels are more accurate

  • #3
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unless there's a particularly compelling need for you to do this - your images should be the exact same dimensions as they are going to appear on screen, otherwise you are just wasting bandwidth and trying people's patience.

    Gary


  •  

    Posting Permissions

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