Support » Themes and Templates » [Theme: Twenty-Twelve] Header/Menu/Content Spacing

  • Hello All,

    I’ve been having trouble trying to reduce the spacing between my site’s header, navigation menu, and post titles (The site uses the Twenty-Twelve theme). I tried messing with the CSS padding on a child theme, but didn’t notice any changes. Can anyone tell me if I editting the wrong CSS or is there another piece of coding I’ll have to edit in?

    I’m a bit of a beginner; thanks in advance for the help!

    Iman

Viewing 8 replies - 1 through 8 (of 8 total)
  • I do not know exactly what to change where, but you will likwly find some answers here:
    http://wordpress.org/search/twenty+twelve+white+space?forums=1

    I’ll check it out! Thanks so much for the speedy reply.

    I just found this while looking through my own theme:

    .header-image {
    	margin-top: 0; /* our mod */
    	margin-top: 0rem; /* our mod */
    	vertical-align: bottom; /* our added */
    }
    
    /* Navigation Menu */
    .main-navigation {
    	margin-top: 0; /* our mod */
    	margin-top: 0rem; /* our mod */
    	text-align: center;
    }

    That might help at least a little!

    Moderator Andrew Nevins

    (@anevins)

    Can you provide a link to the webpage you’re trying to target & post here an excerpt the CSS you’ve tried that isn’t working?

    Thanks leejosepho! That worked brilliantly for adjusting the spacing between my header image and navigation menu. Now all that’s left is fixing the spacing between the navigation menu and the post headers.

    Unfortunately, my site is not public and therefore, providing a link to you wouldn’t be much help, but I found an example of the issue on this twenty twelve demo site. I’m aiming to reduce the white space between the navigation menu and the post title (in this example, that’d be the white space above “Welcome to our website”). I tried messing with the site content article css (below) but perhaps that has nothing to do with the issue I’m trying to solve.

    .site-content article {
    	border-bottom: 4px double #ededed;
    	margin-bottom: 24px;
    	margin-bottom: 1rem;
    	padding-bottom: 24px;
    	padding-bottom: 1.5rem;
    	word-wrap: break-word;
    	-webkit-hyphens: auto;
    	-moz-hyphens: auto;
    	hyphens: auto;
    Moderator Andrew Nevins

    (@anevins)

    Wait, I thought you were using a Child Theme?

    I tried messing with the CSS padding on a child theme

    I do hope that means you actually *are* using a Child Theme! No matter what, *never* modify anything inside your “Parent”. Also, I pass your thanks along to another member here who first made that mod for me.

    I am using a child theme, yes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Theme: Twenty-Twelve] Header/Menu/Content Spacing’ is closed to new replies.