Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2013
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change padding on one page

    Hi,

    I want to remove the padding on all pages other than the homepage, in the same area that the header image is on the home page.

    If you go onto the about us page, you can see I have written 'hello'. I want to reduce the padding between that and the menu and logo.

    Can someone tell me how to do it please.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,081
    Thanks
    23
    Thanked 592 Times in 591 Posts
    We need code or a link to your page.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Most of that is coming from this css:

    Code:
    #header {
        height: 65px;
        margin: 0 0 150px;
        width: 100%;
    }
    To reduce this padding on everything except your home page:

    Code:
    #header {
        height: 65px;
        margin: 0 0 100px;
        width: 100%;
    }
    
    .home #header{
       margin-bottom:150px
    }
    The second statement uses the fact that WP applies a class of home to the body element on your home page.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • #4
    New Coder
    Join Date
    Aug 2013
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    Sorry my website is www.albafitness.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •