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
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!
Not sure that will work.
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.