WordPress.org

Support

Support » How-To and Troubleshooting » Padding removal

Padding removal

Viewing 15 replies - 1 through 15 (of 16 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    Generally in the CSS code — but specifics depend on what padding. Are you using Firebug to work with the CSS?

    Yes, firebug works. I want to change left, right and bottom padding. If I want zero for all how can I do it?

    WPyogi

    @wpyogi

    Forum Moderator

    left, right and bottom of what? Which element?

    I mean make padding zero from left, right and from bottom of my site.

    WPyogi

    @wpyogi

    Forum Moderator

    This is the padding on the sides of the pages:

    body {
        padding: 0 2em;
    }

    There is no padding on the bottom of the pages, but perhaps you mean padding in the footer section — which is here:

    #site-generator {
        background: none repeat scroll 0 0 #F9F9F9;
        border-top: 1px solid #DDDDDD;
        color: #666666;
        font-size: 12px;
        line-height: 2.2em;
        padding: 2.2em 0.5em;
        text-align: center;
    }

    Be sure to copy the relevant code changes to your child theme and make them there.

    Thanks for help. It worked for footer section but in body it did not work. I put body {padding: 0 2em;} this code in style.css section but it did not work. Would you kindly check again?

    Firebug should provide enough tools for you to explore CSS-based issues.
    http://getfirebug.com/faq/

    I am already using firebug but I am not sure where I have to put that code in source code.

    WPyogi

    @wpyogi

    Forum Moderator

    If you want to reduce the padding, you need to remove the 2 in the above code.

    Thanks a lot. It worked.

    I see a very little white gap on the left side but the right site is OK. I am not sure how to fix this left side padding problem.Any help in this regard will be appreciated.

    WPyogi

    @wpyogi

    Forum Moderator

    Sorry, I’m not sure where you mean — the left side of what part of your site? The whole page, the content, the sidebar, etc.

    I mean left side of menubar and footer of my site and probably in body too. If you look footer of my site you will see a little white gap in the left side of footer and menu bar. How can I do it into zero?

    WPyogi

    @wpyogi

    Forum Moderator

    I don’t see any white gaps — sorry. I do see the grey margin space around the entire site? Is that what you mean?

    May be it is caused for my monitor.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Padding removal’ is closed to new replies.