-
Afonso Alves
Good morning everything is fine?
Could you help me put spacing in the images of my articles?
Screenshot: https://prnt.sc/Q7T3sjzY0csw
Not just in this post, but whenever you upload an image to the website, it will have some margin below as it does above.
-
Hi there,
add this CSS to your site:
.wp-block-image { margin-bottom: 1.5em; }
-
Afonso Alves
It worked 🙂
And how can i do the same but for youtube embed videos?
Screenshot: https://prnt.sc/xNy_YxQK-fjm
-
Here:
.wp-block-embed-youtube { margin-bottom: 20px; }
-
Afonso Alves
And another problem related to the images on the website.
How can I correct the size of images on mobile: https://prnt.sc/om7QQ-S_r52T
They seem to be stretched.
-
Afonso Alves
Check screenshot!
-
David
Hi there,
select the Image, and check its settings, and you will see it has a Width and a Height value.
Which is why it is distorting.
You can remove the Height value to fix that.Or you can tell WP to NOT do that globally with some CSS:
.wp-block-image img { height: auto !important; }
-
Afonso Alves
its fixed thanks 🙂
-
David
Glad to hear that!
- You must be logged in to reply to this topic.