Advertisement
arie_cristianD

adding responsive margin in wp image block

Apr 2nd, 2024 (edited)
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.36 KB | None | 0 0
  1. .entry-content .wp-block-image {
  2.     margin-bottom: 30px !important; /* margin bottom for all devices with a width of more than 450px  */
  3. }
  4. @media only screen and (max-width: 425px) {
  5.     .entry-content .wp-block-image {
  6.         margin-bottom: 10px !important; /* margin bottom for all devices with a width of less than 450px (most of mobile device) */
  7.     }
  8.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement