Equal size photos as links

Discussion in 'Web Design and Development' started by tfwn93, Nov 19, 2010.

  1. tfwn93 macrumors newbie

    Joined:
    Nov 19, 2010
    #1
    I'm sorry if this is not the correct method for posting my question, but here it goes.

    I am building a webpage and need to put 4-5 photos in that will be hyperlinks to other pages. I need the photos to be the same size (dimensions, not file size) but I can't figure out how to do this very easily. Iphoto crops pictures, but I don't want them cropped -- I'd like to use the entire photo, not just a portion of it.

    Can anyone help? THANKS!!!

    - Troy

    Macbook Pro: 2.8GHz, 4GB Ram, Mac OS X 10.5.8
     
  2. HomeBru Studios macrumors member

    HomeBru Studios

    Joined:
    Jun 4, 2008
    #2
    Just assign the height value (leaving out the width value) when you define the image in your code. It doesn't matter to the page what size the original image is (but the bigger the image is, the more bandwidth you'll waste), it will resize the image accordingly. Example: <img src="an_image" alt="" height="60" />

    Also, you can use the Preview app that came with your machine. With it, you can crop or resize the image to the specs you require.
     

Share This Page