Home / Admin / Set featured image aspect ratio
Duplicate Snippet

Embed Snippet on Your Site

Set featured image aspect ratio

Used for featured image in query loop or any other image the class is applied to

Code Preview
css
.featured-post-image {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

Comments

Add a Comment