Working with 2 divs on the same page.
I am trying to create two divs side by side. In the first div (left) there is a link with code to replace the content of the second div(right) with a seperate page (login_new2.php) on the webiste. The concept would be to have a series on links within the left div to replace the right div with various pages within the website. Can someone help me?
<title>CSS - Make Two DIVs Left and Right Aligned inside Main DIV.</title>
<!--Example CSS-->
<link href="ExampleStyle.css" type="text/css" rel="stylesheet"/>
<style>
.outerDiv
{
background-color: #006699;
color: #fff;
height: 400px;
width: 1280px;
margin: 0px auto;
padding: 1px;
}
.leftDiv
{
background-color: #efefef;
color: #000;
height: 400px;
width: 10%;
float: left;
}
.rightDiv
{
background-color: #efefef;
color: #000;
height: 400px;
width: 90%;
float: right;
}
</style>
</head>
<body style="text-align: center">
<h1>CSS - Make Two DIVs Left and Right Aligned inside Main DIV.</h1>
<div class="outerDiv">
<div class="leftDiv">
<a href="#rightDiv" onclick="login_new2.php">Click here</a>
</div>
<div class="rightDiv">
This is Right DIV.
</div>
<div "style: clear:both;"></div>
