“CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü” Code-Antworten

CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü

ul {
  font-size: 0;
  overflow: hidden;
  padding: 0;
}

li {
  font-size: 16px;
  display: inline-block;
  margin: 0;
  padding: 0;
  color: gray;
  position: relative;
  padding-right: 2rem;
}

li::before {
  content: "|";
  position: relative;
  left: -1rem;
  font-weight: bold;
  color: black;
}


<ul>
  <li>Item 1</li>
  <li>Another Item</li>
  <li>This Is Nice</li>
  <li>Another</li>
  <li>And Another</li>
  <li>And Yet Another</li>
</ul>
Cheerful Cod

CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü

<ul>
  <li>Item 1</li>
  <li>Another Item</li>
  <li>This Is Nice</li>
  <li>Another</li>
  <li>And Another</li>
  <li>And Yet Another</li>
</ul>
Rich Rabbit

CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü

ul {
  font-size: 0;
  overflow: hidden;
  padding: 0;
}

li {
  font-size: 16px;
  display: inline-block;
  margin: 0;
  padding: 0;
  color: gray;
  position: relative;
  padding-right: 2rem;
}

li::before {
  content: "|";
  position: relative;
  left: -1rem;
  font-weight: bold;
  color: black;
}
Rich Rabbit

Ähnliche Antworten wie “CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü”

Fragen ähnlich wie “CSS ausblenden Sie das erste Li -Separator in jeder Zeile - reaktionsschnell horizontales CSS -Menü”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen