Post styling: image dimensions
-
Hello, I’m working on creating my own theme from scratch. What I’m having trouble with at the moment is the images in my posts.
Compare:
https://www.gregorygainsborough.com/sketchbook/ (a twentyeleven child theme)
with
https://www.gregorygainsborough.org/sketchbook/ (my theme-in progress)My problem (should be obvious) is the image size. I can resize images in my style.css, (by applying a .img style to a class specified in my loop), but, because the imported images are all of different dimensions, the resizing that works for one image (eg: width:500px; height:300px) will stretch or squeeze another image.
Twentyeleven is doing something to generically scale the images so they are all roughly of the same width, and I’d like to figure out how to do the same.
Thanks to anyone who can help!
- The topic ‘Post styling: image dimensions’ is closed to new replies.