0

Почему элементы не кликабельны?

body {
    background-color: #212121;
    color:white;
}

header {
    background-color: #303030;
    height: 100px;
    display: flex;
    justify-content: end;
    align-items: center;
    padding-right: 2%;
}

.headerTitle {
   position:absolute;
   padding-right: 50%;
   font-size: 28px;
   font-weight: 700;

}

a {
    color:white;
}

.headerLinks a {
    margin-right: 10px;
    text-decoration: none;
}

.headerLinks a:hover {
    color: #888888;
}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MyFirstSite_copy_2_2</title>
    <link rel="stylesheet" href="style.css">
</head>



<body>

    <header>

<h1 class="headerTitle">Influencers</h1>

      <div class="headerLinks">
          <a href="#">Home</a>
          <a href="#">Contact</a>
          <a href="#">About</a>
      </div>

  </header>


</body>


</html>

1 ответ 1

1

headerTitle с position:absolute; перекрывает блок с ссылками

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.