pseudo elemenet in css

technical talkiess
0

 Pseudo in css :- 


<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>pseudo in css </title>

</head>

<style>

.container{

     background-color: beige;

     width: 70%;

     padding: 20px;

     border: 1px solid black;

     margin: 12px auto;

}

/* hover pseudo element  */

a:hover{

     color: red;

     background-color: white;

}

/* hover pseudo element  */

a:visited{

     background-color: black;

     color: white;

}

a:active{

     background-color: green;

     color: black;

}

.btn{

     background-color: aqua;

     color: black;

     cursor: pointer;

     padding: 12px ;

}

a{

     text-decoration: none;

}

</style>

<body>

<div class="container">

     <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aspernatur, enim praesentium! Ea quaerat eaque itaque quos atque. Mollitia, voluptatem. Maiores cumque totam accusantium molestias amet iusto eius fugiat consequatur! Doloremque?</p>

     <a href="https://google1.com" class="btn">Read more</a>

     <button class="btn">Read more</button>

</div>

</body>

</html>


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)