HTML Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="static.css">
<title>Static/Fixed Layout</title>
</head>
<body>
<header>Portfolio</header>
<nav>NAV</nav>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="static.css">
<title>Static/Fixed Layout</title>
</head>
<body>
<header>Portfolio</header>
<nav>NAV</nav>
<div class="row">
<div class="column">
<p>Test</p> <p>Test</p>
</div>
</div>
<div class="row">
<div class="column">
<p>Test</p> <p>Test</p>
</div>
</div>
<div class="row">
<div class="column">
<p>Test</p> <p>Test</p>
</div>
</div>
</body>
</html>
CSS Code:
/* CSS Document */
body{
background-color: teal;
}
background-color: teal;
}
header{
width: 1024px;
font-size: 40px;
padding: 10px;
text-align: center;
border: 5px solid white;
margin: 10px;
}
width: 1024px;
font-size: 40px;
padding: 10px;
text-align: center;
border: 5px solid white;
margin: 10px;
}
nav {
width: 1024px;
font-size: 20px;
padding: 10px;
text-align: center;
border: 3px solid white;
margin: 10px;
}
width: 1024px;
font-size: 20px;
padding: 10px;
text-align: center;
border: 3px solid white;
margin: 10px;
}
p {
width: 200px;
height: 180px;
font-size: 20px;
padding: 10px;
text-align: center;
border: 1px solid white;
margin: 10px;
}
width: 200px;
height: 180px;
font-size: 20px;
padding: 10px;
text-align: center;
border: 1px solid white;
margin: 10px;
}
.column {
padding: 20px 10px;
float: left;
width: 30%;
}
padding: 20px 10px;
float: left;
width: 30%;
}
.row:after {
display: table;
}
display: table;
}