programming-examples/css/Background position.html
2019-11-15 12:59:38 +01:00

34 lines
1.1 KiB
HTML

<html>
<head>
<title>background-position</title>
</head>
<body>
<div style="background:blue url(http://www.lovelylovesayings.com/images/Kissing-in-the-rain-in-black.jpg) repeat top left;
width:200;
border:2;
height:120;
font-size:13">
Never pretend to a love which you do not actually feel,<br>
for love is not ours to command.<br><br>
Alan Watts
</div>
<br><br><br><br>
<div style="background-color:pink;
background-attachment:fixed;
background-image:url(http://www.lovelylovesayings.com/images/Kissing-in-the-rain-in-black.jpg);
background-repeat:repeat;
background-position-x:top;
background-position-y:left;
width:300;
border:2;
height:120;
font-size:13">
True love comes quietly, without banners or flashing lights.<br>
If you hear bells, get your ears checked.<br><br>
Erich Segal
</div>
</body>
</html>