Thanks for taking the time to read this. I've been struggling with centering an two images, the text and logo, above the navbar. Below are some photos and current code. **DISCLAIMER: the text in the image is not centered.
Here is what I'm currently working with: https://jsfiddle.net/rw9domy1/
.logo , .navbar-brand {
position: relative;
top: 50%;
left:50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.logo-text {
margin-top:10px;
}
My goal is to stack both the 'text' and 'logo' image above the menu items, '1-8'. I'm attempting then to center them, which I tried using various different methods but none seemed to work, and I'm assuming it has to do with Bootstrap's CSS. Various people have seemed to center their brand but have the dropdown menu items to the left or right of brand not below.
I also want to hide 'text' when on mobile, so that the logo is centered left of the "hamburger" icon. I'm familiar with @media, and may use this.
See if this helps. You have to create a
div
above where yournav
component begins.