Forums

[resolved] Cannot align header and menu in child theme (3 posts)

  1. sleepyralph
    Member
    Posted 1 year ago #

    Hello - I'm new and need help!

    I have made a child theme from twenty ten and successfully changed the width of the content. I am strugging with the header though. I can alter the header size ok, but cannot figure out how to left align it with the menu - it is always about 30px or so offset see http://blog.mymusictheory.com.

    I've altered the functions.php file to `define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 600 ) );
    define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 100 ) );` and the css to

    #header {
      background: url("<?php bloginfo('stylesheet_directory'); ?>/images/wc_header.jpg")
      no-repeat bottom center; }
    #headerimg  {
    
      height: 100px;
      width: 600px;
    	margin: -10px;
    	float:left;
    	padding:0;}

    I put a negative value in margin in the hope that it would work, but have tried many other values - nothings makes it change. If I make the image size the same width as the wrapper (1020px), it sticks out on the right hand side.

    Help appreciated - thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try adding:

    #branding { width:auto;}

  3. sleepyralph
    Member
    Posted 1 year ago #

    Works perfectly! Thanks so much! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.