www.webdeveloper.com
Results 1 to 2 of 2

Thread: Html Image Place Holder

  1. #1
    Join Date
    Aug 2005
    Posts
    3

    Html Image Place Holder

    Hello all,

    Greetings from Scotland. I am using MSWindowsXP Pro + DWMX200 making html page

    I would be grateful if someone could tell me how to put an image place holder on the page for a swap image that does not stretch the viewed images on the browser.

    I have a main image 400x400 px on the left and a table with 6 thumbnails 80x80 px on the right. I want to crop images on one dimension to 400px or for thumbnails 80px but when viewed on the browser I do not want them to stretch to fit the placeholders.

    Thanks,

    James Oliver

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Images used as backgrounds of block elements will be cropped to the size of the element and will not be stretched. Therefore I'd recommend you do that with divs, maybe a list for the thumbs.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles