phillystyle123
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:
It's already there earlier in the earlier breakpoint and it shouldn't shift from center unti it hits 1025px.
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;}
It's already there earlier in the earlier breakpoint and it shouldn't shift from center unti it hits 1025px.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Thanks for the points.
ASKER
I know-I was repeating it because I was desperate ;)
Thanks so much for the explanation and the solution
Thanks so much for the explanation and the solution
ASKER