ASDV-WebDev/Semester 1/Chapter ZIPs/HTML/chapter7/7.3/iefix.html

52 lines
1.6 KiB
HTML

2023-02-16 14:15:19 +07:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Layout Example</title>
<meta charset="utf-8">
<style>
nav { float: left;
width: 150px;
padding: 10px; }
main { margin-left: 160px;
padding: 10px;
background-color: #FFFFFF;
/* The following declaration forces IE to display
the new HTML5 main element as needed.
The display property is introduced in Chapter 7 */
display: block;
}
body { background-color: #000066; }
#wrapper { width: 80%;
margin-left: auto;
margin-right: auto;
background-color: #EAEAEA; }
header { background-color: #CCCCFF; }
h1 { margin: 0;
padding: 10px; }
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><br>
<a href="page1.html">Page 1</a><br>
<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>