@SeeYou1ater

Как скрыть угол блока?

Как можно скрыть угол блока за квадратом?

.App__catCard {
  position: relative;
  padding-top: 21px;
  padding-left: 48px;
  width: 320px;
  height: 480px;
  color: black;
  border-radius: 10px;
  border: 4px solid #1698D9;
  background-color: white;
  background-image: url('/src/image/cat.png');
}

.App__catCard::before {
  display: block;
  content: '';
  width: 70px;
  height: 60px;
  background-color: #1698D9;
  border-right: 4px solid #1698D9;
  position: absolute;
  top: -35px;
  left: -40px;
  transform: rotate(45deg);
  overflow: hidden;
}

.App__catCard h3{
  font-family: 'Trebuchet MS';
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
}

.App__catCard h4{
  text-align: left;
  font-family: 'Trebuchet MS';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 15px;
}

.App__catCard p{
  color: #666666;
  font-family: 'Trebuchet MS';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
}

.App__weight {
  padding-top: 20px;
  width: 80px;
  height: 80px;
  position: absolute;
  background-color: #1698D9;
  border-radius: 50%;
  color: white;
  text-align: center;
  right: 16px;
  bottom: 16px;
}

.App__weight p{
  font-family: 'Trebuchet MS';
  font-style: normal;
  font-weight: 400;
  font-size: 42px;
  line-height: 20px;
  color: white;
}

.App__weight span{
  display: inline-block;
  margin-top: 8px;
  font-family: 'Trebuchet MS';
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 22px;
}


Без транспарент:

62acc76e60d40759439460.png

С транспарент:

62acc78ec41eb026474175.png
  • Вопрос задан
  • 73 просмотра
Решения вопроса 1
Gvoz1
@Gvoz1
Frontend разработчик
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

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

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