I am in the process of creating a custom menu for my website. I want to include an icon with text underneath, but when I add the text it shifts to the right and messes up the alignment.
Menu with Icon Only
Menu with Text (causes alignment issues)
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css');
.adminNavigation {
width: 100%;
height: 80px;
background-color: #ebebeb;
border-radius: 3px;
}
.adminNavOptions {
display: table;
margin: 0 auto;
line-height: 80px;
}
.adminNavOptions li {
display: inline-block;
padding-right: 62px;
padding-left: 62px;
}
.adminNavOptions li:hover {
background-color: #000;
}
EDIT - After implementing Gleb Kemarsky's code, there are still some issues with vertical alignment of the icon and text:
ICONHERE
txt
Additionally, the width of the menu bar does not adjust according to the number of list items. I attempted to use width:auto;
https://i.sstatic.net/4quuN.png