CSS Background Attachment Property

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

Program 1

<html>
    <head><title>First CSS Page</title>
    </head>
    <body>
       <A href="https://data-flair.training/" title="Data Flair Web Site"> Click Here</A>
    </body>
</html>

Program 2

New! Keyboard shortcuts … Drive keyboard shortcuts have been updated to give you first-letters navigation
<html>
    <head><title>Box Image Demo</title>>
      <style>
        body
        {
            background-color: antiquewhite;
        }
        #container
        {
            width: 600px;
            height: 500px;
            padding: 50px;
            border-color: red;
            border-style: double;
            background-image: url("dog1.jpg");   
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;

        }
      </style>
    </head>

    <body>
     <div id="container">
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
    Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime.
     </div>
    </body>
</html>

 

You give me 15 seconds I promise you best tutorials
Please share your happy experience on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *