-
Notifications
You must be signed in to change notification settings - Fork 0
/
resize.html
40 lines (30 loc) · 994 Bytes
/
resize.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
<!DOCTYPE html>
<html>
<head>
<style>
div {
border: 2px solid;
padding: 20px;
height: 100px;
resize: vertical; /* or we can use width: 300px, resize: horizontal or resize: both only without height and width so it will take height and width automatically*/
overflow: auto;
}
textarea#text{
resize:none;
display :block;
}
</style>
</head>
<body>
<h1>The resize Property</h1>
<div>
<p>Let the user resize only the width of this div element.</p>
<p>To resize: Click and drag the bottom right corner of this div element.</p>
<p>To resize: Click and drag the bottom right corner of this div element.</p>
<p>To resize: Click and drag the bottom right corner of this div element.</p>
<p>To resize: Click and drag the bottom right corner of this div element.</p>
</div><br></br>
<textarea id="text">Text area not resizable</textarea><br></br>
<textarea>Resizable</textarea>
</body>
</html>