WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove space above the logo image ? (17 posts)

  1. ajeetmish
    Member
    Posted 1 year ago #

    Hi

    I am running a site: http://www.greedynet.com Everything is working fine except one thing. I want to remove the white space above my logo image. I know it can be done by editing some codes in css but I am not able to find the exact code for this. Can somebody help me out ? Thanks in advance.

  2. Alain Lankers
    Member
    Posted 1 year ago #

    In your CSS file remove the margin-top and padding-top from #wrap.
    And in #header remove the margin-top.

  3. ajeetmish
    Member
    Posted 1 year ago #

    Hi Alain ,

    I tried looking for padding-top under #Wrap and margin-top in #header but couldn't find it. When I see my site using bugzilla I can see there is margin : 30px auto under #wrap but can not see this padding in my style.css. Please help.

    Below is my CSS please have a look and tell me if you can identify like where I have to change the settings.

    [Stylesheet moderated. Please just post a link to your site instead.]

  4. ajeetmish
    Member
    Posted 1 year ago #

    Thanks moderators for moderating my Style Sheet but what to do ? I am really fed up wid this white space above my logo image. It is really unnecessary and it looks bad. Please help me out in removing this white space. My Site's Link is : http://www.greedynet.com

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Looking at Alain Lanker's response, you need to edit the #wrap styles and possibly the #header.

    Try adding to the bottom of your stylesheet;

    #wrap {
     padding-top: 0;
     margin-top: 0;
    }

    Do you still want more space removed?

  6. ajeetmish
    Member
    Posted 1 year ago #

    Thanks Andrew for quick response. Let me check if this helps. Will get back to you in a moment.

  7. ajeetmish
    Member
    Posted 1 year ago #

    Hi,

    I added the code above into my styleseet and even under header section. But if you can see my site, its still in the same condition. No space removed. :(

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try adding !important on the end of the styles

    #wrap {
     padding-top: 0 !important;
     margin-top: 0 !important;
    }

    http://webdesign.about.com/od/css/f/blcssfaqimportn.htm

  9. ajeetmish
    Member
    Posted 1 year ago #

    Hi Marvin,

    Many thanks for your efforts. But it didn't help me out. I added the above but still no luck........ :( :( :(

  10. Andrew
    Forum Moderator
    Posted 1 year ago #

    On my screen, you have yet to add !important.

  11. ajeetmish
    Member
    Posted 1 year ago #

    No Andrew, I've already added that code into my style sheet.

  12. ajeetmish
    Member
    Posted 1 year ago #

    Even now I have added that code under header section also. But still in the same situation.

  13. Andrew
    Forum Moderator
    Posted 1 year ago #

    Something's wrong with the technique you're using to add the CSS in. No !important styles are applying to the web page.

  14. ajeetmish
    Member
    Posted 1 year ago #

    my themestyle.php has following style :

    #topnav {border-bottom:0} #wrap {padding:10px 20px 20px;'.$wrapper

    does this have anything to do with that space ?

  15. ajeetmish
    Member
    Posted 1 year ago #

    I am adding these to my style sheet by opening this from dashboard directly and then updating the file.

  16. CodeBotics
    Member
    Posted 1 year ago #

    Adding this should fix the problem:

    margin: 0 auto !important;
    padding: 0 !important;

    If you've already done this, as suggested above, yet it's still not working and you have a caching plugin installed, make sure you delete its cache.

  17. ajeetmish
    Member
    Posted 1 year ago #

    @ Alain Lankers ;
    @ Andrew Nevins ;
    @ CodeBotics

    Thanks a lot guys ..................... :) :) :) Finally space is removed.

    It was cache which was restricting the above code to work..

Topic Closed

This topic has been closed to new replies.

About this Topic