console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>CSS3 3-Column Layout</title>
</head>
<body>
<header>
<h1>Header</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<section class="column">
<h2>Column 1</h2>
<p>This is the content of column 1.</p>
</section>
<section class="column">
<h2>Column 2</h2>
<p>This is the content of column 2.</p>
</section>
<section class="column">
<h2>Column 3</h2>
<p>This is the content of column 3.</p>
</section>
</main>
<footer>
<p>© 2023 Your Website</p>
</footer>
</body>
</html>
body, h1, h2, h3, p {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 1em 0;
}
nav ul {
list-style: none;
background-color: #444;
text-align: center;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
display: flex;
justify-content: space-between;
padding: 20px;
}
.column {
flex: 1;
padding: 20px;
border: 1px solid #ddd;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1em 0;
}