zeek19a.html

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Borders and Backgrounds</title>
    <style>
        #firstPara{colorred;
                height100px;
                width300px;
                background-coloryellow;
                /* border-color: violet;
                border-style: solid;
                border-radius: 16px;    } */
                border16px solid violet;}
       
        #secondPara{colorred;
                height100px;
                width300px;
                background-colorgreenyellow;
                border-top6px solid green ;
                border-left3px solid orange ;
                border-right9px solid blue;
                border-bottomsolid 12px pink;
                border-top-left-radius12px;
                border-top-right-radius20px;
                border-bottom-left-radius8px;
                border-bottom-right-radius23px;}
      
        #thirdPara{colorred;
                height600px;
                width600px;
            background-imageurl(https://www.codewithharry.com/assets/img/logo.png);
            background-colorpink;
            /* background-repeat:repeat-y ;
            background-repeat:repeat-x ;*/    /* These commands image will repeat in
 Yaxis and Xaxis respectively*/
            background-repeatno-repeat;
            /* background-position-x: 400px;
            /* background-position-y: 300px; ( position of image on basis of x and
 yaxis ) */
           
            /* background-position:center center;     (position of image on basis 
of location w.r.t height and width) */
            background-position:top center ;

            }
    </style>
</head>
<body>
    <h4>Border and Background attributes </h4>
    <p id="firstPara">This is my first para.</p>
    <p id="secondPara"">This is my second para.</p>
    <p id="thirdPara"">This is my third para.</p>
    
</body>
</html>

Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS