Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery, Dynamically change image width / height

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #33394
    Olly
    Member

    Hi everyone

    I have the issue that i need to change an image’s dimensions according to wether its height or width is larger than another. So in basic terms; if the picture is landscape, set it to a width 900px or if it is portrait, then set the height to 600px.

    I need it to loop through

  • an of images. like this…

    		






    And then determine if it needs to be set by height ot width.

    Thankyou for any suggestions you submit.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.