Is there a way to align images inside a nav tag and position them at the edges of the navigation element?
I've been researching and attempting to use vertical-align: middle
and float
, but they don't seem to have any effect on how the elements are displayed.
Check out the code on Codepen: https://codepen.io/centem/pen/BaajLZm
#company-name {
float: left;
vertical-align: middle;
}
.logo {
float: right;
vertical-align: middle;
}
img {
height: 40px;
vertical-align: middle;
}