Как сверстать такую границу?

5eb6e8836433e041346701.png
  • Вопрос задан
  • 108 просмотров
Решения вопроса 1
@Oleg2002pr
Никто
Добрый день! Я попробовал как-то так:
<div class="container">
      <button>
        Click me
      </button>
    </div>

body, html {
        min-width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
        font: Arial 14px;
      }
      .container {
        width: 100%;
        height: 100px;
        border-bottom: 1px solid yellow;
        position: relative;
      }
      .container button {
        position: absolute;
        bottom: -20px;
        transform: translateX(-50%);
        left: 50%;
      }
      .container::before {
        content: "";
        transform: translateX(-50%);
        bottom: -20px;
        width: 100px;
        height: 20px;
        background: white;
        position: absolute;
        left: 50%;
        border: 1px solid yellow;
        border-top: 0px;
      }

Ну скругления можно потом добавить. Это сам принцип работы. Код не красивый, бистро писал)
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы