Exercise 7.1

 

<!doctype html>

<html>

<head><title>Chapter 7 - Background</title>

<style type="text/css">

 

body {

                background-color: white;

                background-image: url("learncodingfast.png");

                background-repeat: repeat-x;

                background-attachment: fixed;

}

 

#box1 {

                width: 100px;

                height: 100px;

                background-repeat: no-repeat;

                background-color: blue;

                background-image: url("backgroundposition.png");

                background-position: 0 0;

}

 

#box2 {

                height: 1000px;

}

</style>

</head>

<body>

                <div id="box1"></div>

                <div id="box2"></div>

</body></html>