Link to home
Start Free TrialLog in
Avatar of phillystyle123
phillystyle123Flag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of phillystyle123

ASKER

that worked! how did you figure this out?
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.
I know-I was repeating it because I was desperate ;)

Thanks so much for the explanation and the solution