Skip to content

Implement bullet point styling in HTML / CSS #286

@pgundlach

Description

@pgundlach
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    ul {
      list-style: none;
      padding-left: 0;
    }
    ul li::before {
      content: "\2022";
      color: red;
      font-weight: bold;
      display: inline-block;
      width: 1em;
      margin-left: 0em;
    }
  </style>
</head>
<body>
  <ul>
    <li>hello</li>
    <li>world</li>
  </ul>
</body>

</html>

This should be the output:

listyle

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions