summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 7 hands-on assignments/Ch7_msglm/7.1.box2.html
blob: 6bcaf5336ac3bc0c31ccdb70d432a2181d7fca1b (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>CSS</title>
        <meta charset="utf-8">
        <style>
.div1 { 
    width: 200px;
    height: 200px;
    background-color: #D1ECFF;
    border: 3px dashed #000000;
    padding: 5px; 
}

.div2 { 
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border: 3px ridge #000000;
    padding: 5px;
    margin: 10px; 
}

        </style>
    </head>
    <body>
        <div class="div1">
            This is the outer box.
            <div class="div2">
                This is the inner box.
            </div>
        </div>
    </body>
</html>