Attempting to create a basic 3-column template
Below is the CSS code being used:
#page {
padding: 0px;
height: 100%;
width: 900px;
margin-right: auto;
margin-left: auto;
float: none;
margin-top: 0px;
margin-bottom: 0px;
}
#header {
height: 250px;
width: 900px;
margin-right: auto;
margin-left: auto;
}
#right-column {
float: right;
width: 200px;
}
#left-column {
float: left;
width: 200px;
}
#center-column {
width: 490px;
margin-right: auto;
margin-left: auto;
}
Here is the corresponding HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title></head>
<body>
<div id="page">
<div id="header">
<img src="header.png" width="900" height="250" />
</div>
<div id="page-content">
<div id="left-column">Content for id "left-column" Goes Here</div>
<div id="center-column">Content for id "center-column" Goes Here</div>
<div id="right-column">Content for id "right-column" Goes Here</div>
</div>
</div>
</body>
</html>
The issue at hand is the unexpected top margin on the right column. Despite the similar structure of all columns, the right column appears with this margin. How can this be resolved?