• Resolved Kruble

    (@kruble)


    I’m using the Lifesytyle child theme with a colored background but white content area. All content butts up flush with the left side of the content area, and I’d like to add some space there.

    I’ve successfully added html code <p style=”padding:20px;”> to one of the pages to address this but this didn’t work on a gallery page (I’m using the NextGEN gallery plugin).

    Is there a way to address this in CSS?

    The page where I added the html is: https://www.kevinruble.com/wp/about-the-artist/

    The gallery page is: https://www.kevinruble.com/wp/galleries/

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Use a Custom CSS plugin for any changes, as when the main theme updates, all the changes you may have made to the main theme will be lost.

    So, please remove the <p style="padding:20px;"> from where you put it in the main theme.

    After installing the plugin, paste this code in it:

    .site-container {
    	padding-right; 20px;
    	padding-left; 20px;
    }
    Thread Starter Kruble

    (@kruble)

    Didnt work. I installed the plug-in “TJ Custom CSS”, activated it and inserted the code as per the instructions, but nothing changed. Any ideas?

    Let me look…
    Did you remove the <p style=”padding:20px;”> from where you put it in the main theme?

    I’m sorry… late nights (0_0)

    I made and error in the code. This should work…

    .site-container {
    	padding-right: 20px;
    	padding-left: 20px;
    }
    Thread Starter Kruble

    (@kruble)

    Beautiful! Thank you…Worked like a charm. Now get some sleep!

    Sleep sounds good, but if everything is okay, then you can mark this thread “Resolved”.
    G’night!

    Thread Starter Kruble

    (@kruble)

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘adding margin space to content’ is closed to new replies.