width is auto by default, so removing it in the code has no effect. I don’t think center is a valid value for margin, so the browser ignores it.
The navbar-brand class is defined in bootstrap and gives the element a float: left property. It’s what’s stopping you from centering the logo. You can try overriding this by adding float: unset in your CSS. Then you should be able to center the image by setting display: block; margin: auto;. Don’t forget to add display: block to the containing <a> element.
You also have img in the middle of the <img> tag (which shouldn’t be there). You also shouldn’t use the center attribute in the HTML (as in <p align="center">...).
Yes, that’s correct. And, ideally, I would also like to override Bootstrap dropping it below the logo at 768px width. I would like to reduce that number to 500px so that it remains alongside the logo whilst it still has sufficient room.
So using text-align is okay here because it is text rather than an image that we are aligning?
Or is it because the image had a defined class for it’s attributes??
It’d be fantastic if you could solve the 768px adjustment problem as this isn’t the first time that I’ve encountered the problem and I’m sure it won’t be the last!
Ok, I found that .navbar-header also applies float:left to the element where it’s attached, but only when the viewport’s at least 768px wide.
I tried changing your media query from min-width: 768px to 500px then added .navbar-header { float: left; } there, but everything looks squished below 600px. You might have to settle for min-width: 600px instead.