works in ie not FF

Discussion in 'CSS' started by thechasboi, Jan 12, 2007.

  1. #1
    I have this page where you can upload images to the db. There is a div on the page and when you click the thumbnail it changes the image in the div. I set the image to height:90% and the width:auto; This works perfectly great in IE but not FF. I tried to insert max-width and max-height but that is not working entirely. The width is fixed but it would be too long in some pictures. THe objective of this is to allow any size image to the div and allow css to adjust the size of the image. Thanks for the reply.
     
    thechasboi, Jan 12, 2007 IP
  2. thechasboi

    thechasboi Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I fixed it. I set the div to 475x252. then i set the img to width:auto;height:100%;max-height:252px;. I hope this helps other people
     
    thechasboi, Jan 12, 2007 IP