Site icon DataFlair

CSS Background Property

Full Stack Web Development Courses with Real-time projects Start Now!!

Program 1

<html>
    <head>
        <style>
            p{
                border-style: dotted solid;
                border-width:5px;
                background-color: aquamarine;
            }
            body{
                background-color: aqua;
                background-image: url('C:\\Users\\Lenovo\\Downloads\\bird.jpg');
                background-repeat: no-repeat;
                background-size: 200px 200px;
                background-position: bottom right;
            }
        </style>
    </head>
    <body>
        <p>This is some text</p>
    </body>
</html>

 

Exit mobile version