Forums

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

Home Forums CSS Set Image to Auto Fit the page width

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43807
    ericss
    Member

    Hi,

    I would like to get the images fit to the current page width.

    As you can see here: http://www.mangerproduction.com/what-weve-done/ the images are over the page width.

    I would like to make them to fit into the windows as they resize as well.

    How can I do that?

    Thanks!

    #130283
    Paulie_D
    Member

    Not sure that will work.

    #130300
    TheDoc
    Member

    You have this applied to your media query:

    img {
    max-width: 100%;
    height: auto;
    }

    But you only have that applied to your smaller size, that’s why the bigger version breaks out.

    Having said that, you’d probably want to not use a table and make a bunch of other changes.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.