padding within posts

Permalink
Is there any way to add padding/width/a margin to the html within a post so that the words aren't hitting the edge of the box that they are in?

I've tried adding <body marginleft="3"> and a few variations on this, but when i click save and reopen the html the code I've inserted disappears.

 
shondy replied on at Permalink Reply
shondy
You should probably do this so that it is global and so that you wouldn't have to do it for every post. You should probably edit the CSS and look for the containing div and add the padding there, or in the theme that you are using there is a place to add custom CSS. From the dashboard, go to Themes, and on the theme you are using, go to Customize. You will see a box to add custom CSS.

If you do edit the theme's CSS and ever update the theme, the changes you make to the theme will get overridden, so it's not the optimum solution.

Something like:
post_container {
     padding: 15px;
}


or something to that effect. Replace "post_container" with whatever class or ID surrounds the content you want to pad. You may need to use margin instead of padding depending on the situation.
wagdi replied on at Permalink Best Answer Reply
wagdi
After adding the block to the page, try clicking on the block again-> select 'Design' -> 'Spacing' -> now edit those variables to your liking and hit 'Save'.

Hope that helps!
stazi replied on at Permalink Reply
Thank you!!! I don't know why I didn't see that before, that's so much simpler!
wagdi replied on at Permalink Reply
wagdi
You're welcome. Glad it helped.