Posts

Showing posts from March 26, 2019

Centering an element without taking bullet point into account

Image
7 I am unsure on how to center my li elements in the light green space, just based off the green squares I've created around them. As of right now CSS is including the space taken up by the bullet points when centering, which I do not want. #square { position: fixed; width: 350px; height: 100%; top: 0px; left: 0px; background-color: rgb(230, 255, 230); } ul { position: relative; bottom: 30px; display: flex; flex-direction: column; align-items: center; } li { margin-top: 40px; padding-left: 75px; border-color: white; border-width: 2px; border-style: solid; padding: 5px 20px 5px 20px; background-color: green; border-radius: 10px; width: 100px; text-align: center; } .navlink { text-decoration: none;