Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #204334

    Hi,

    I’m searching for a way to reduce the space between the various elements on my homepage: http://www.gc-vitae.nl/homepage/

    For example the space between the slider and the two text blocks, and the space between the text blocks and the color section, and so on… I’ve tried various CSS codes but nothin worked (though it did in Firebug).

    Thanks,

    Ying-Fu

    #204356

    Hi yingfuli!

    You can adjust the content div padding using this:

    .content, .sidebar {
    padding-top: 10px;
    padding-bottom: 10px;
    }

    Regards,
    Ismael

    #204477

    Hi Ismael,

    That doesn’t work alas. At least not on the homepage.

    #204496

    Hi!

    Please add following code to Quick CSS as well

    body .column-top-margin {
    margin-top: 10px;
    }

    And the code Ismael posted is not being applied. Please try adding it to bottom of Style.css file of your child theme in Appearance > Editor

    Regards,
    Yigit

    #204519

    Hi Yigit,

    Tried what you said but the homepage won’t change one bit.

    #204558

    Hi!

    Please try adding !important to force css codes

    .content, .sidebar {
    padding-top: 10px!important;
    padding-bottom: 10px!important;
    }
    body .column-top-margin {
    margin-top: 10px!important;
    }

    then flush browser cache and settings of caching plugin if you are using any and refresh your page a few times

    Cheers!
    Yigit

    #204982
    This reply has been marked as private.
    #205185

    Hey!

    Sure, you can post it here privately. Make sure to check ” Set as private reply (Only you and moderators will see the content of this post)” above Submit button

    Best regards,
    Yigit

    #205342
    This reply has been marked as private.
    #205509

    Hey!

    I tried it on Quick CSS but it is not working. Do you have access to the custom.css? Please add Yigit’s and my code there:

    .content, .sidebar {
    padding-top: 10px!important;
    padding-bottom: 10px!important;
    }
    
    body .column-top-margin {
    margin-top: 10px!important;
    }

    Edited: I added the changes directly on header.php and it seems to work now: http://www.gc-vitae.nl/

    Best regards,
    Ismael

    #205543

    You guys rock!

    Thanks!

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