The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › I cant seem to get these Li elements to line up properly.. help?
So, im trying to get these li’s to centre and then line out horizontally. Is there something im missing?
https://codepen.io/mitned/pen/ZxVwPy
This? https://css-tricks.com/centering-list-items-horizontally-slightly-trickier-than-you-might-think/
I have added few lines of CSS to help you, please look into it!
If you are just trying to center the list items and they are inline-block then text-align:center should go on the parent ul
inline-block
text-align:center
ul
https://codepen.io/Paulie-D/pen/dmaJXY