-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSS overflow.html
33 lines (29 loc) · 1.03 KB
/
CSS 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS overflow property</title>
<style>
.box {
width: 30vw;
height: 30vh;
border: 2px solid black;
/* overflow: auto;
overflow-x: hidden;
overflow-y: scroll; */
overflow: scroll hidden;
/* white-space: nowrap;
text-overflow: ellipsis; */
}
</style>
</head>
<body>
<div class="box">
I am a good boy and i love to write Lorem ipsum, dolor sit amet consectetur adipisicing elit. Culpa sed magnam
nam ex adipisci tenetur corporis placeat labore tempore aliquid incidunt rerum officiis doloremque accusantium
neque assumenda numquam, ab, nobis cupiditate, repellendus sunt inventore eum distinctio. Veniam tenetur qui
nobis dignissimos. Mollitia eligendi natus cupiditate?
</div>
</body>
</html>