Results 1 to 2 of 2

Thread: Image size...

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image size...

    When I give percentages to an image, it doesn't appears. Why?? How can I fix it??

    <img src="<?php echo $arr["imagem"]; ?>" width='20%' height='20%' border="0">

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Unless this is php specific, percentages used with images usually just set it to a percentage of the dimensions of the parent (containing) element. If that has 0 height and width, the image will have 0 height and width.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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