DOCTYPE HTML
DOCTYPE HTML
DOCTYPE html>
<html lang="en">
<head>
<title>Page Title</title>
<meta charset="UTF-8">
<style>
*{
box-sizing: border-box;
body {
margin: 0;
/* Header/logo Title */
.header {
padding: 80px;
text-align: center;
background: #1abc9c;
color: white;
}
/* Increase the font size of the heading */
.header h1 {
font-size: 40px;
.navbar {
overflow: hidden;
background-color: #333;
.navbar a {
float: left;
display: block;
color: white;
text-align: center;
text-decoration: none;
/* Right-aligned link */
.navbar a.right {
float: right;
}
/* Change color on hover */
.navbar a:hover {
background-color: #ddd;
color: black;
/* Column container */
.row {
display: flex;
flex-wrap: wrap;
/* Sidebar/left column */
.side {
flex: 30%;
background-color: #f1f1f1;
padding: 20px;
/* Main column */
.main {
flex: 70%;
background-color: white;
padding: 20px;
.fakeimg {
background-color: #aaa;
width: 100%;
padding: 20px;
/* Footer */
.footer {
padding: 20px;
text-align: center;
background: #ddd;
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of
each other instead of next to each other */
.row {
flex-direction: column;
}
/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top
of each other instead of next to each other */
.navbar a {
float: none;
width: 100%;
</style>
</head>
<body>
<div class="header">
<h1>My Website</h1>
</div>
<div class="navbar">
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
</div>
<div class="row">
<div class="side">
<h2>About Me</h2>
<h5>Photo of me:</h5>
<h3>More Text</h3>
</div>
<div class="main">
<h2>TITLE HEADING</h2>
<p>Some text..</p>
<p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco.</p>
<br>
<h2>TITLE HEADING</h2>
<p>Some text..</p>
<p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco.</p>
</div>
</div>
<div class="footer">
<h2>Footer</h2>
</div>
</body>
</html>