“Jak wyrównać listę do centrum w CSS” Kod odpowiedzi

Center ul

dropdwon-menu {
	left: 50%;
	transform: translateX(-50%);
}
Mysterious Mantis

Jak wyśrodkować listę w HTML

/* Either center the list directly or center the parent element */

ul {
 text-align: center;
}

/* OR */

div .list {
 text-align: center;
}
CtrlKey

Jak wyrównać listę do centrum w CSS

<div id="menu-centered">
     <ul>
          <li><a href="">My first item</a></li>
          <li><a href="">My second item</a></li>
          <li><a href="">My third item</a></li>
          <li><a href="">My fourth item</a></li>
          <li><a href="">My fifth item</a></li>
     </ul>
</div>
Good Gharial

Odpowiedzi podobne do “Jak wyrównać listę do centrum w CSS”

Pytania podobne do “Jak wyrównać listę do centrum w CSS”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu