what is wrong with this code?
The right-col is slightly misplaced:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
width: 100%;
background: lightgray;
border-collapse: collapse;
}
div,
header,
footer {
padding: 10px;
border: 2px #0000ff solid;
}
#left_col,
#page_content {
margin-right: 10px;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 0;
}
#right-col {
margin-top: 10px;
margin-bottom: 10px;
}
header,
footer {
text-align: center;
min-height: 50px;
}
#left_col {
float: left;
width: calc(15% - 10px);
}
#right_col {
float: left;
width: 15%;
}
#page_content {
width: calc(70% - 10px);
float: left;
}
#container,
#scripts,
#wrapper {
border: 0;
}
#left_col,
#right_col,
#page_content {
min-height: 500px;
}
footer {
clear: left;
}
</style>
</head>
<body>
<div id="wrapper">
<header>
<h1>Header</h1>
</header>
<div id="container">
<div id="left_col">Left Column</div>
<div id="page_content">Page Content</div>
<div id="right_col">Right Column</div>
</div>
<footer>Footer</footer>
</div>
<div id="scripts">Scripts</div>
</body>
</html>
