Answer the question
In order to leave comments, you need to log in
How to change the size of the image in the desired DIV through CSS for the mobile version?
Good afternoon! Can you please tell me how to set the image parameters specifically for one type of images that are displayed as a cover for a post?
I used to use such an insert right in the post
<style>
@media only screen and (min-width : 320px) and (max-width : 480px) {
img {width: 100%;}
}
</style>
@media only screen and (max-device-width: 480px) {
div#single-featured-image-header {
width: 100%;
}
Answer the question
In order to leave comments, you need to log in
media only screen and (max-device-width: 480px) {
.single-featured-image-header {
width: 100%;
}
}
div before id why write? and put a parenthesis at the end } closing the media and you also don't have an id but a class, respectively, not # but . before class name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question