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
It works for him here: http://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?
- The topic ‘Resizing images for a responsive design’ is closed to new replies.