Run

Tutorial With Example

Run your live code

 
​x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
div {
6
    width: 200px;
7
    min-width: 300px;
8
  border: 2px solid red;
9
}
10
​
11
</style>
12
</head>
13
<body>
14
​
15
<h2>Setting the Width and Height </h2>
16
​
17
  <div>
18
          My Name is Ada Chang
19
  </div>
20
​
21
</body>
22
</html>