-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext-showing.html
47 lines (45 loc) · 1.71 KB
/
text-showing.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
<!DOCTYPE html>
<html>
<head>
<title>CSS Quirks</title>
<link
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet"
/>
<style>
.clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.clamp.two-lines {
-webkit-line-clamp: 2;
}
.clamp.three-lines {
-webkit-line-clamp: 4;
}
</style>
</head>
<body class="py-4">
<div class="max-w-lg mx-auto bg-gray-300 p-4">
<div class="bg-white p-4 rounded mb-4">
<h1 class="font-bold mb-2 text-lg">Bangladesh</h1>
<p class="text-sm clamp three-lines">
Bangladesh (/ˌbæŋləˈdɛʃ/,[14] Bengali: বাংলাদেশ, pronounced
[ˈbaŋlaˌdeʃ] (About this soundlisten)), officially the People's
Republic of Bangladesh, is a country in South Asia. It is the
eighth-most populous country in the world, with a population exceeding
162 million people.[15] In terms of land mass, Bangladesh ranks 92nd,
spanning 148,460 square kilometres (57,320 sq mi), making it one of
the most densely-populated countries in the world. Bangladesh shares
land borders with India to the west, north, and east, Myanmar to the
southeast, and the Bay of Bengal to the south. It is narrowly
separated from Nepal and Bhutan by the Siliguri Corridor, and from
China by Sikkim, in the north, respectively. Dhaka, the capital and
largest city, is the nation's economic, political and cultural hub.
Chittagong, the largest sea port, is the second-largest city.
</p>
</div>
</div>
</body>
</html>