Open bobbingwide opened 3 years ago
size-large images were also vertically stretched.
TT1 blocks has the following CSS in https://github.com/WordPress/theme-experiments/blob/08b86b02dfa6a594ab501060aa0551fbaa01ae62/tt1-blocks/assets/css/blocks.css#L62
.wp-block-image img,
.wp-block-image img {
height: auto;
}
Not sure why it's specified twice!
In the FAQ "Do I need to define image sizes?" https://s.b/wp55/thisis/2021/04/28/do-i-need-to-define-image-sizes/
I inserted the same image 4 times with different sizes. The HTML for the full size image was:
the image was stretched vertically. This inline CSS for the block was
I needed to add
height: auto
toWhat's more challenging is to make the block wide or full width.