Carfol Posted June 16, 2021 Share Posted June 16, 2021 Site URL: https://www.charliefollows.com I set the bottom text margin to 2.5em for paragraph text so that the spacing is better for my blog but I'm not sure how to set this only for my blog so it isn't site wide. Does anyone know how to do this? Link to comment
Wolfsilon Posted June 16, 2021 Share Posted June 16, 2021 Hey there, Try this code. .blog-item-wrapper p:last-child { margin-bottom: 2.5em !important } The blog-item-wrapper is the wrapper of all of the blog contents and we've added a "p:last-child", which means that last paragraph of the blog should have a bottom margin of 2.5em. Otherwise, every paragraph in the blog post will have the margin. Hope this helps, -Dan tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment