marcusami
04-28-2008, 11:35 AM
hey,
I have a container div that is going to hold 2 sub divs
leftMenu and contentArea. I want these two lined up next to eachother;
what I have appears to me that it should do what I desire, but of course it doesnt. Could you please, not just post a solution, but explain whats going on here.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
</title>
<style type="text/css">
<!--
#container{
position:relative;
width:900px;
background-color:#d6ae84;
margin: 0 auto;
}
#leftMenu{
position:relative;
top:0%;
width:250px;
background-color:#d6ae84;
}
#left_top_Logo{
position:relative;
top:0%;
width:250px; height:265px;
background-image:url('images/leatherhead_head.gif');
margin-left:0%;
}
#contentArea{
position:relative;
top:0%;
width:650px; height:225px;
background-image:url('images/logo.gif');
margin-left:26%;
}
-->
</style>
</head>
<body>
<div id="container">
<!-- Container -->
<div id="contentArea">
<!-- Body/ Content area -->
</div>
<!-- End body /Content area-->
<div id="leftMenu">
<!-- left menu area -->
<div id="left_top_Logo">
<!-- where the logo image sits -->
</div>
<!-- lgoo sits ends -->
Menu Area<br><br>
Menu Area<br><br>
Menu Area<br><br>
</div>
<!-- Menu area ends -->
</div>
<!-- End Container -->
</body>
</html>
http://readyidea.com/leatherhead/index.php
^ is page
Thank you
Marcus
I have a container div that is going to hold 2 sub divs
leftMenu and contentArea. I want these two lined up next to eachother;
what I have appears to me that it should do what I desire, but of course it doesnt. Could you please, not just post a solution, but explain whats going on here.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
</title>
<style type="text/css">
<!--
#container{
position:relative;
width:900px;
background-color:#d6ae84;
margin: 0 auto;
}
#leftMenu{
position:relative;
top:0%;
width:250px;
background-color:#d6ae84;
}
#left_top_Logo{
position:relative;
top:0%;
width:250px; height:265px;
background-image:url('images/leatherhead_head.gif');
margin-left:0%;
}
#contentArea{
position:relative;
top:0%;
width:650px; height:225px;
background-image:url('images/logo.gif');
margin-left:26%;
}
-->
</style>
</head>
<body>
<div id="container">
<!-- Container -->
<div id="contentArea">
<!-- Body/ Content area -->
</div>
<!-- End body /Content area-->
<div id="leftMenu">
<!-- left menu area -->
<div id="left_top_Logo">
<!-- where the logo image sits -->
</div>
<!-- lgoo sits ends -->
Menu Area<br><br>
Menu Area<br><br>
Menu Area<br><br>
</div>
<!-- Menu area ends -->
</div>
<!-- End Container -->
</body>
</html>
http://readyidea.com/leatherhead/index.php
^ is page
Thank you
Marcus