Is it possible to change the position of an image within a navbar from left to right? I have tried using the float property but it doesn't seem to work.
.logo-img{
float: right;
margin: 0px 15px 15px 0px;
}
<a class="navbar-brand logo-img" href="#"><img src="images/my_graphic_transparent.jpg" alt="shield" width="90" /></a>
I attempted to define a class called .logo-img in the stylesheet and then apply it to the image within the navbar, but the image did not move to the right as expected.
.logo-img{
float: right;
margin: 0px 15px 15px 0px;
}
<a class="navbar-brand logo-img" href="#"><img src="images/my_graphic_transparent.jpg" alt="shield" width="90" /></a>