CSS3

Ikony – vložení do stránky a styly

Nemáte přístup k této lekci.
Pro přístup k obsahu kurzu se zaregistrujte nebo přihlaste.

Vložení ikon do stránky HTML – CSS

.features-icons {
  stroke: aquamarine;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  fill: blue;
}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <h1>heroicons.com</h1>
    <svg
      xmlns="http://www.w3.org/2000/svg"
      class="features-icons"
      viewBox="0 0 24 24"
      stroke="currentColor"
    >
      <path
        stroke-linecap="round"
        stroke-linejoin="round"
        stroke-width="2"
        d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
      />
    </svg>
  </body>
</html>