Dienstag, 10. Juni 2025

Worttrennung CSS & Spiegelstrichliste

 p, h1, h2, h3, h4, h5, h6 {

    overflow-wrap: break-word;

    word-wrap: break-word;

    hyphens: auto;

}


.spiegelstrich-liste {

  list-style-type: none;

  padding-left: 0;

}


.spiegelstrich-liste li::before {

  content: "–";

  color: #c455c6; /* Optional: Spiegelstrich-Farbe */

}