-
Notifications
You must be signed in to change notification settings - Fork 0
/
float.html
49 lines (42 loc) · 1.88 KB
/
float.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First website</title>
<link rel="stylesheet" href="style.css">
<style>
img{
float:right;
}
.box {
width: 100px;
height: 100px;
border: 1px solid;
font-size: 40px;
text-align: center;
background: tomato;
float :left;
}
p{
/* clear: left; */
clear: both;
}
</style>
</head>
<body>
<!-- float = positions an element to the left or right
side of a container
eg.Popular for wrapping
elements around images -->
<!-- <img src="image1.jpg" width="125px">
<img src="image2.jpg" width="125px">
<img src="image3.jpg" width="125px"> -->
<!-- <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod unde corporis quae fugit ipsum assumenda at sit, eveniet, quam porro minus quo a nihil esse voluptatibus commodi vitae veritatis sint.</p>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Tenetur ex sint repudiandae ullam accusamus ad eaque unde, tempora placeat repellat mollitia dolore qui modi alias voluptatem labore earum. Aut, veritatis?</p> -->
<div class="box">Box 1</div>
<div class="box">Box 2</div>
<div class="box">Box 3</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime quam id, repellendus ex impedit obcaecati explicabo nostrum sint dolore error dolorum incidunt eaque ut porro, sit est, numquam culpa ipsa.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime quam id, repellendus ex impedit obcaecati explicabo nostrum sint dolore error dolorum incidunt eaque ut porro, sit est, numquam culpa ipsa.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime quam id, repellendus ex impedit obcaecati explicabo nostrum sint dolore error dolorum incidunt eaque ut porro, sit est, numquam culpa ipsa.</p>
</body>
</html>