I'm currently learning and attempting to create a layout with 4 divs that fits my desired page size, rather than adjusting based on the user's window size. My main struggle is getting the right div to align with the left div, without necessarily sticking to the right side of the user's window.
Here is the code I've been working with. Thank you for any assistance provided!
HTML:
<!DOCTYPE html>
<html>
<head>
<title>all.about.me</title>
<link rel='stylesheet' type='text/css' href='me_stylesheet.css'/>
</head>
<body>
<div id="header">
<p>March 02, 2014
<br><br>Hello.
<br>
</p>
</div>
<div id="left"> </div>
</div>
<div id="right"> </div>
<div id="footer">
</a>
</div>
</body>
</html>
CSS:
p
{
font:10px verdana,sans-serif;
color: white;
padding-left: 10px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
}
body
{
background-color: red;
}
div {
border-radius: 0px;
}
#header {
height: 80px;
width: 600px;
background-color: black;
margin-bottom: 5px;
}
#footer {
height: 35px;
width: 600px;
background-color: black;
margin-bottom: 5px;
clear: both;
}
#left {
height: 385px;
width: 122px;
background-color: black;
float: left;
margin-right: 5px;
margin-bottom: 5px;
}
#right {
height: 385px;
width: 300px;
background-color: black;
float: right;
margin-right: 5px;
margin-bottom: 5px;
}
I realize this may be a simple question and could potentially find the answer through Google, but I always appreciate the unique and creative solutions shared by fellow coders in this community. Thank you for your guidance!