• tegeberg

    (@tegeberg)


    Hi guys

    Please take a look at http://www.anekarinstrik.dk where I have moved the main menu to the sidebar and implemented a second, horizontal menu below the header. I want to remove the white space between the header and the horizontal menu before I start styling the page. Any ideas as to what is causing it? Would it be in header.php or in the stylesheet?

    Header.php around the menu:

    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= HEADER_IMAGE_WIDTH ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) : ?>
    						<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    					<?php endif; ?>
    			</div><!-- #branding -->
    	<div id="main">
    <?php /* Start add our second page menu */ ?>
        <div id="pagemenu" role="navigation">
            <?php wp_nav_menu( array( 'container_class' => 'page-header', 'menu_class' => 'page-menu', 'theme_location' => 'secondary', 'depth' => 0, 'fallback_cb' => '' ) ); ?>
        </div>

    Second menu in style.css

    [css code moderated - the link to your site is enough to get the stylesheet]

Viewing 1 replies (of 1 total)
  • Michael

    (@alchymyth)

    mainly caused by the top padding in:

    #main {
    	clear: both;
    	overflow: hidden;
    	padding: 40px 0 0 0;
    }

    if you set that to 0 (zero) then there is only a few pixel gap left

Viewing 1 replies (of 1 total)
  • The topic ‘Twenty ten theme, removing space between menu and header’ is closed to new replies.