WordPress > Bootstrap theme - centering element anomily

When this hits 992 wide:

http://cjehost.com/ncjwla3/

The logo shifts to the left. I need it to be centered until I hit the next breakpoint:

@media (min-width: 1025px)

css I'm using to keep the logo centered:

h1.site-title img{margin-left:auto;margin-right:auto;}

Open in new window


It's already there earlier in the earlier breakpoint and it shouldn't shift from center unti it hits 1025px.
phillystyle123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
Try adding this to the bottom of style.css.
@media only screen and (max-width: 1024px) {
    #site-branding div.col-md-5 {
        width: 100%;
    }
}

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phillystyle123Author Commented:
that worked! how did you figure this out?
Tom BeckCommented:
I saw that you had the definition in place for h1.site-title img. In fact you had repeated it in three different places in styles.css :) However, at the 990 to 1024 pixel width, it was being overridden by the bootstrap col-md-5 definition. col-md covers 992 to 1200px. Your problem was only at the bottom end of that range so you could not change to col-md-12. Media query was the quickest solution.

Thanks for the points.
phillystyle123Author Commented:
I know-I was repeating it because I was desperate ;)

Thanks so much for the explanation and the solution
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.