programming-examples/css/Body background-attachment scroll.html

33 lines
952 B
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!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>