I tried the following code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<style type="text/css">
#outer {
width: 90%;
height: 90%;
margin: 5% 5% 5% 5%;
background-color: #333;
}
#left-content {
height: 90%;
width: 50%;
padding: 2em;
}
#right-content {
height: 90%;
width: 50%;
padding: 2em;
}
</style>
<div id="outer" style="display: block">
<div id="left-content" style="display: block">xx</div>
<div id="right-content" style="display: block">xx</div>
</div>
</body>
</html>
However the outer DIV still doesn’t fill much of the screen. How can I make it so this DIV fills the 90% and just leaves a 5% border?
You need to give your
htmlandbodya height: