How do you deal with Featured Image & Media Queries
-
Since featured image sets default sizes, example:
add_image_size( ‘post-thumbnails2200px’, 360, 250, true );
add_image_size( ‘post-thumbnails1280px’, 250, 250, true );
add_image_size( ‘post-thumbnails800px’, 150, 250, true );my question is how do you display featured image with different sizes without using the css max-width or any css styles.
I’m having trouble displaying it when i try on different resolution. actually, i have no idea what to do. when i use css, it gets distorted since the height is fixed in 250px.
i am wondering if you someone could share their php if and else script or javascript or anything. please help!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do you deal with Featured Image & Media Queries’ is closed to new replies.