dimanche 28 avril 2019

Same margin both sides, still does not look centered

Trying to set a nav bar centered, but imo it looks closer to the left side than to the right.

I am giving it a width and half of the remaining one as left side margin, but does not change. I ser margin of the elements to 0 in case it might affect, and same to the padding. Does anyone have an idea if there is an element with margin i am not counting on? Thanks

nav{
    display: block;
    width: 50%;
    padding: 0;
    margin-left: 25vw;
    margin-top: 5vh;
    margin: auto;
}




Aucun commentaire:

Enregistrer un commentaire