@ivn-zee

Почему не работает псевдоэлемент after?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css">
    <title></title>
    <style>
                .square{
            display: inline-block;
            width: 45px;
            height: 45px;
            border-radius: 30px;
            background-color: #292929;
            position: relative;
            top: 405px;
            transition-duration: 0.5s;
            transition-timing-function: cubic-bezier(0.39, 0, 0, 1);
            overflow: hidden;
        }
        .square::after{
            content: "Что мы умеем?";
            font-family: Helvetica;
            color: #292929;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 18px;
        }
    </style>
</head>
<body>
<div class="square"></div>
</body>
</html>
  • Вопрос задан
  • 65 просмотров
Решения вопроса 1
Seasle
@Seasle Куратор тега CSS
background-color: #292929;

color: #292929;
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

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

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