WordPress.org

Ready to get started?Download WordPress

Forums

Adding padding to blog posts (6 posts)

  1. allieliz
    Member
    Posted 1 year ago #

    Hi there- I added a 5px border around my pages. This looks really nice on everything but the blog entries, where the border is right up against the text. I would like to add padding to my posts, but don't know enough about the WordPress page structure to do so without risking messing something up!

    I've also noticed that when I visit my site on a mobile device, the borders are too close as well. Any insights?

    I would really appreciate the help!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Those kinds of spacing issues are controlled by CSS in the style.css file. It's not a big deal to change them (keep a back-up copy before you start messing with it) -- and you can use Firebug to figure out which CSS code to change.

    If you want specific help, you must post a link to your site so someone can see the actual code.

  3. allieliz
    Member
    Posted 1 year ago #

    Shoot, duh! Here's the link to my site, blog post that needs fixing is the front page. The look with the border that I DO like can be seen on the rest of the pages, such as 'About.'

    Thank you for your response!

    http://www.allielizphotography.com

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    This CSS should do it -- on line 706:

    .hentry, .no-results {
        border-bottom: 1px solid #DDDDDD;
        margin: 0 0 1.625em;
        position: relative;
    }

    change the padding to how you want it to look.

  5. allieliz
    Member
    Posted 1 year ago #

    Works like a charm! Thank you so much for your help :)

    Edit: I had asked another question but it seems that I figured it out for now!

  6. Nandita B.
    Member
    Posted 1 year ago #

    Hi WPyogi,

    Can you please help me to adjust the padding for my post.

    I want to increase the padding of my post from the sidebar on the right side for better readability.

    My blog link http://moneyctl.com

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic