My goal is to keep the featured image size consistent on the main blog page.
I made adjustments to this code:
HTML:
<div class="featured-image-excerpt">
<img class="attachment-post-thumbnail size-post-thumbnail wp-post-image" src="http://mrodriguez.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Infographic.-7-blog-post.png" alt="infographic-7-blog-post" srcset="http://mrodriguez.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Infographic.-7-blog-post.png 2480w, http://mrodriguez.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Infographic.-7-blog-post-98x300.png 98w, http://mrodriguez.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Infographic.-7-blog-post-768x2341.png 768w, http://mrodriguez.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Infographic.-7-blog-post-336x1024.png 336w" sizes="(max-width: 2480px) 100vw, 2480px" width="2480" height="7558">
</div>
CSS:
.attachment-post-thumbnail {
height: 460px;
width: 100%;
}
However, upon visiting the page, the infographic featured image appears squished on the main blog page.
My objective is to have the image cut-off at 460px rather than being distorted to fit into 460px. Essentially, I want the featured image excerpt to be truncated at 460px.
Why isn't my current solution working? What would you recommend?
Thank you for your assistance.