Hoe te maken: pilvormige knop

Leer hoe je een pilvormige knop kunt maken met CSS.

Hoe een pilvormige knop te maken

Stap 1 - Voeg HTML toe:

<button class="button">Pil knop</button>

Stap 2 - Voeg CSS toe:

Gebruik de border-radius eigenschap om de knoppen ronde hoeken toe te voegen:

.button {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 16px;

Try it yourself

Related pages

Tutorial:CSS button