WordPress.org

Support

Support » Themes and Templates » Centering Custom Header – Origami Theme

Centering Custom Header – Origami Theme

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add this to your style.css

    #logo img{margin-left:222px;}

    zex2911,
    Perhaps, I’m not adding it correctly because I was unable to get it to work.
    Here is the code for #logo:

    /* =Logo
    -------------------------------------------------------------- */
    
    #logo {
    	position: center;
    
    	margin: 20px 0 25px 0;
    }
    
    #logo a.logo-link {
    	text-decoration: none;
    }
    
    #logo h1 {
    	color: #555;
    	display: inline-block;
    	font-family: "Terminal Dosis", Arial, Helvetica, Geneva, sans-serif;
    	font-size: 52px;
    	font-weight: 200;
    	margin-bottom: 0.2em;
    }
    
    #logo h3 {
    	color: #666;
    	display: inline-block;
    	font-size: 13px;
    }
    
    /* =Logo  : Search Form
    -------------------------------------------------------------- */

    any suggestions? thanks for your help! I’m new at this!

    sjd4188

    make it so it looks like this

    /* =Logo
    -------------------------------------------------------------- */
    #logo {
    	position: center;
    
    	margin: 20px 0 25px 0;
    }
    #logo img{margin-left:222px}

    thank you so much!!! it worked!!!

    Moderator Michael

    @alchymyth

    Forum Moderator

    remove:

    position: center;

    it does not exist:
    http://www.w3schools.com/cssref/pr_class_position.asp

    instead of some arbitrary left margin, use for instance:

    #logo img{display:block;margin:auto;}

    http://www.w3.org/Style/Examples/007/center.en.html

    do not guess – work through the basics: http://www.w3schools.com/css/

    ps:
    to see the results, do not forget to clear the browser cache after any changes to the styles – ‘reload’ the web page (a few times) or press ‘CTLR F5’ or whatever your browser needs.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Centering Custom Header – Origami Theme’ is closed to new replies.