I have a UL element that contains 4 icons within a div using absolute positioning to align it to the bottom of the screen. This div is located within a fixed sidebar.
To create a horizontal list, I applied display: inline
to the list items.
You can see the issue I'm facing with the alignment of the 4 icons in the code example running on bootply. The icons are slightly offset to the right instead of being centered:
Other content in the sidebar appears to be centered without any problems, so it's specific to this list of icons.
I've tried various methods like using inline-block
and float:left
on the list items, but the icons still don't align properly. Can anyone spot the mistake here? I feel like I might have overlooked something simple.