skip to Main Content

We re trying to customize an element on my WordPress website but it’s impossible.

I’m trying to paste it into custom CSS into my WordPress website because the image is not responsive for mobile but it’s not working.

from

@media only screen and (max-width: 767px)
.et_pb_image_0 .et_pb_image_wrap img {
    width: auto;
}

TO

@media only screen and (max-width: 767px)
.et_pb_image_0 .et_pb_image_wrap img {
width: 500px;`
}

2

Answers


  1. Correct code:

    @media only screen and (max-width: 767px) {
      .et_pb_image_0 .et_pb_image_wrap img {
         width: 500px;
      }
    }
    
    Login or Signup to reply.
  2. @media only screen and (max-width: 767px){.et_pb_image_0 .et_pb_image_wrap img {width: 500px;}}

    Correction

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search