admin管理员组文章数量:1327120
I would like to you ask you. I changed the dimensions of the thumbnail size in my theme. But in the categories, it looks stretched (I mean the images associate with a post in the category view). Problem is that some pictures are in landscape and others are in portrait format. The picture is not visible in full resolution. Is there any CSS command which can help me? What do you recommend?
I would like to you ask you. I changed the dimensions of the thumbnail size in my theme. But in the categories, it looks stretched (I mean the images associate with a post in the category view). Problem is that some pictures are in landscape and others are in portrait format. The picture is not visible in full resolution. Is there any CSS command which can help me? What do you recommend?
Share Improve this question asked Aug 9, 2020 at 15:46 Mike WoodsMike Woods 11 bronze badge1 Answer
Reset to default 0Using background-size: cover
instead of background-size: contain
with a custom background-position ? It will cut images but preserve the same format/size for all.
本文标签: cssChange post featured image
版权声明:本文标题:css - Change post featured image 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742201244a2431999.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论