You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/css/Body background-attachment ...

33 lines
952 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" subLang="en-US" xml:subLang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Body background-attachment: scroll</title>
<style rel="stylesheet" type="text/css">
body
{
margin: 2px auto;
padding: 2px;
background-color: pink;
background-image: url('images/background-image.jpg');
background-repeat: repeat;
background-attachment: scroll;
background-position: top left;
}
</style>
</head>
<body>
<h1>Love Sayings</h1>
<p>Gravity. It keeps you rooted to the ground.<br>
In space, there's not any gravity.<br>
You just kind of leave your feet and go floating around.<br>
Is that what being in love is like?<br><br>
Josh Brand and John Falsey
</p>
</body>
</html>