summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 7 hands-on assignments/Ch7_msglm/7.3.index.html
blob: 38052641200d1c5d925468c19b716a22b3980b8a (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Layout Example</title>
        <meta charset="utf-8">
        <style>
nav { 
    float: left;
    width: 150px; 
}
main { 
    margin-left: 160px; 
}
body { 
    background-color: #000066; 
}
#wrapper { 
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #EAEAEA; 
}
h1 { 
    margin: 0;
    padding: 10px; 
}
nav {
    float: left;
    width: 150px;
    padding: 10px;
}
main { 
    margin-left: 160px;
    padding: 10px;
    background-color: #FFFFFF;  
}
footer { 
    text-align: center;
    font-style: italic;
    background-color: #CCCCFF;
    clear: both; 
}
        </style>
    </head>
    <body>
        <div id="wrapper">
            <header><h1>Layout Example</h1></header>
            <nav>
                <a href="index.html">Home</a>
                <a href="page1.html">Page 1</a>
                <a href="page2.html">Page 2</a>
            </nav>
            <main>
                <h2>Page Heading</h2>
                <p>This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence. This is a sentence.</p>
            </main>
            <footer>Copyright &copy; </footer>
        </div>
    </body>
</html>