programming-examples/css/Div tag float right.html

34 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:subLang="en" subLang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>div tag float right</title>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
color: pink;
background-color: red;
}
.mystyle {
float: right;
padding: 12px;
margin: 8px;
background-color: red;
border: 1px solid gray;
width: 15%;
}
</style>
</head>
<body>
<div class="mystyle">Love is all we have, the only way that each can help the other. Euripides</div>
<div class="mystyle">Love is all we have, the only way that each can help the other. Euripides</div>
<div class="mystyle">Love is all we have, the only way that each can help the other. Euripides</div>
<div class="mystyle">Love is all we have, the only way that each can help the other. Euripides</div>
</body>
</html>