-
Notifications
You must be signed in to change notification settings - Fork 0
/
overflow.html
73 lines (67 loc) · 2.5 KB
/
overflow.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.mega-box{
width: 150px;
height: 200px;
border: 2px solid red;
/* overflow: scroll; */
/* overflow-y: scroll; */
overflow: auto;
}
.mango-people{
width: 150px;
height:200px;
border:2px solid green;
overflow: scroll;
overflow-x: hidden;
}
.mini-mini{
width: 100px;
height: 50px;
border: 2px solid tomato;
}
.short-text{
white-space:nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<h1>I am happy.Ami khosi te godo godo</h1>
<div class="mini-mini">
<p class="short-text" title="If you want to know overflow,ellipsis and white-space" >If you want to know overflow,ellipsis and white-space</p>
</div>
<div class="mega-box">
<p>
The overflow property specifies whether to clip the content or to add
scrollbars when the content of an element is too big to fit in the
specified area. 1)visible - Default. The overflow is not clipped. The
content renders outside the element's box 2) hidden - The overflow is
clipped, and the rest of the content will be invisible #scroll - The
overflow is clipped, and a scrollbar is added to see the rest of the
content 4)auto - Similar to scroll, but it adds scrollbars only when
necessary Note: The overflow property only works for block elements with
a specified height.
</p>
</div>
<br />
<div class="mango-people">
The overflow property specifies whether to clip the content or to add
scrollbars when the content of an element is too big to fit in the
specified area. 1)visible - Default. The overflow is not clipped. The
content renders outside the element's box 2) hidden - The overflow is
clipped, and the rest of the content will be invisible #scroll - The
overflow is clipped, and a scrollbar is added to see the rest of the
content 4)auto - Similar to scroll, but it adds scrollbars only when
necessary Note: The overflow property only works for block elements with a
specified height.
</div>
</body>
</html>