Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Location
    Arkansas
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image dimension question

    So, if I'm setting the max width for all the images that appear on a page like this:
    Code:
    {max-width: 470px!important}
    Is it possible to set it up so that the height of an image is automatically changed so the proportions don't get messed up by the change in width?
    Also, I'm not all that knowledgeable in CSS, so I apologize if the answer is really obvious or something.
    Thanks!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Is it possible to set it up so that the height of an image is automatically changed so the proportions don't get messed up by the change in width?
    How those <img> tags added to your page? Is it by some serverside code or manually coded?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Tags for this Thread

    Posting Permissions

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