Here is an image: What I am trying to align vertically
I am trying to align these items with the icon on top of the text Here is my code:
* {
margin: 0;
}
body {
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
padding: 0px;
margin: 0px;
}
a {
text-decoration: none;
margin: 5px;
color: black;
}
ul {
list-style: none;
padding: 0px;
}
.icon {
font-size: 36px;
vertical-align: middle;
}
.navbar {
z-index: 100;
background-color: #f1f1f1;
border-bottom: 1px solid black;
text-align: center;
padding: 5px;
margin-bottom: 25px;
}
.navbar ul li .leftNav {
display: inline;
float: left;
}
.navbar ul li .middleNav {
display: inline;
float: center;
position: relative;
}
.navbar ul li .rightNav {
display: inline;
float: right;
position: relative;
}
and my html:
extends layout
block content
.navbar
ul
li
a(class="leftNav" href="#") Movies
i(class="fas fa-film icon")
li
a(class="leftNav" href="#") Series
i(class="fas fa-film icon")
li
h1(class="middleNav")= title
p Welcome to #{title}
There is probably a simple solution I am missing here but any help is appreciated since I have been looking around for 30 minutes and still haven't found any solution to this on the web.