WordPress.org

Ready to get started?Download WordPress

Forums

White space between header and nav bar (3 posts)

  1. DomainClaimers
    Member
    Posted 6 years ago #

    I have been trying to find out the error on this project, I have a custom header image and custom nav bar which I have done many times before with wordpress. I am currently using WP version 2.5.1 and Kubrick 1.6 - I have searched all the code looking for the error that puts the white space between the header and nav bar with no luck finding it, even comparing it to other sites I have made looking for changes in the code with no luck. You can view the site Here

  2. stvwlf
    Member
    Posted 6 years ago #

    on line 645 in your style.css, in this section:

    #navmenu {
    background:transparent url(images/navbarbg.jpg) repeat scroll 0%;
    height:80px;
    margin:10px;
    text-align:center;
    width:97.5%;
    }

    If you change margin:10px to margin:0px the white space goes away.

    If you find you need the margin at the left, right, or bottom, you can also wrote it like this:
    margin: 0 10px 10px 10px;

  3. DomainClaimers
    Member
    Posted 6 years ago #

    Thanks that was great information I also changed the width code to get the nav bar to be even on the sides now, anyway to get the black bar under the nav bar back or will I need to create a new header image?

    #navmenu {
    margin: 0px;
    text-align: center;
    height: 80px;
    width: 98.75%;
    background: url('images/navbarbg.jpg');

Topic Closed

This topic has been closed to new replies.

About this Topic