• I’m trying to center my logo in the header of my webpage. I tried many code snippets that I found on google, but none of them have worked. Any ideas?

    #header { padding-bottom: 20px; }
    div.logo { float: left; }
    h1#title, div#title, div.logo img {
    	padding: 30px 0 0 20px;
    	font-size: 3em;
    	color: #f8f8f8;
    	font-weight: bold;
    	text-shadow: 0 2px 0 #000;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Thread Starter mrdegges

    (@mrdegges)

    The webpage is: https://phitlab.host22.com/wordpress/
    The banner at the top is what I need to center.

    Change padding: 30px 0 0 20px; to padding: 30px 0 0; in:

    h1#title, div#title, div.logo img {
        color: #F8F8F8;
        font-size: 3em;
        font-weight: bold;
        padding: 30px 0 0 20px;
        text-shadow: 0 2px 0 #000000;
    }

    within wp-content/themes/traction/stylesheets/master.css

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Centering logo’ is closed to new replies.