Skip to main content

CSS Tutorial 22

 <!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

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

    <title>Pseudo selectors & more designing</title>

</head>

<style>

    .container {

        border: 3px solid seagreen;

        background-color: skyblue;

        width: 500px;

        margin: 34px auto;

        padding: 34px;

    }


    .btn {

        border-radius: 15px;

        background-color: rgb(66, 222, 233);

        border: 2px solid darkorange;

        padding: 5px;

        color: rgb(150, 42, 22);

        cursor: pointer;

        font-weight: bold;

    }

    button{float: right;}


    #hbtn{

        text-decoration: none;

    }

    a:hover{

        background-color: crimson;

        color: white;

        border: yellow 3px solid;


    }

    a:active{

        background-color: fuchsia;

        cursor: progress;

       color: black;

       text-transform: uppercase;

    }

    button:hover{

        background-color: chartreuse;

        color: red;

        border: 4px solid darkorange;

        text-transform: lowercase;

    }

    button:active{

        background-color: rgb(2, 1, 12);

        color: white;

        border: 5px solid wheat;

        text-transform: uppercase;

    

    }

</style>


<body>

    <div class="container" id="cont1">

        Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta quo error quibusdam accusamus assumenda at natus

        vero nesciunt in tempora ullam ratione ducimus ut, tempore nisi eius distinctio suscipit maiores eligendi beatae

        fuga mollitia explicabo? Iusto dignissimos obcaecati accusamus esse alias exercitationem, sed minus nam ipsam.

        Nisi vero est quibusdam!

        <div><hr>


            <a href="https:/google.com" class="btn" id="hbtn">read more</a>

            <button class="btn" id="bbtn">READ MORE</button>

        </div>

    </div>


</body>


</html>

Comments

Popular posts from this blog

HTML Tutorial 9

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Inline & Block Elements</title> </head> <body>      </body> </html>

CSS Tutorial 24

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>CSS Display Property</title>     <style>         *{             box-sizing: border-box;         }         header {             margin: auto;             border: 2px solid firebrick;             /* width: 30%; */         }         img {             /* display: inline; this is most property display inline, block and inline block */             /* if you select display inline so...... you do not set width but */             /* you select displ...

HTML Tutorial 5

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Heading Paragraphs and Emmet</title> </head> <body> <h1>Heading 1 for Rajendra </h1>     <h2>Heading 2 for Rajendra </h2>     <h3>Heading 3 for Rajendra </h3>    <!-- if you need some example world so you use loram12 for 12 words --> <p> • Incompatible: the chosen fixed size may be too large for a user's available live space, causing the user to scroll in order to view the whole page; a fixedWeb page may also appear too small, leaving unsightly blank spaces.     <!-- <br> tag use for a line break or line change and it is self closing tags -->     <br>• Totalitarian: the Web does not want to run the risk of being under too mu...