Trent Scott
Trent Scott

Reputation: 2028

Center a Logo via CSS in Wordpress

I'm trying to center the logo of a site (here) in Canvas on Wordpress. I'm using this CSS:

#logo img {
display: block;
margin-left: auto;
margin-right: auto;
}

Unfortunately, it doesn't work. I can manually move the logo like this, though:

#logo img {
display: block;
margin-left: 330px;
}

But, by forcing it with left-margin, it breaks the mobile site (moves the logo 3" over requiring scrolling).

What's the best way to solve this?

Upvotes: 0

Views: 3129

Answers (1)

Kalpesh Patel
Kalpesh Patel

Reputation: 2822

In your site an element with id = 'logo', has been floated to left by css.

Remove float:left declaration for this element.

Upvotes: 2

Related Questions