Resizing images for a responsive design
-
Problem: when I say max-width:100% in my css, images adjust by width but not height — they just squish narrower.
I’m trying to make a responsive web design, meaning fluid grids and images that resize to the width of their container. Ethan Marcotte’s book (Responsive Web Design) talks about using
img {
max-width:100%;
}
It works for him here: https://unstoppablerobotninja.com/demos/resize/ but not for me. I’m guessing this is because wordpress gives me an image with width and height attributes included in the img tag. Is there a way around this? Any other ideas?
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Resizing images for a responsive design’ is closed to new replies.