what you want (technically) really cant be accomplished with divs/css. It's not the way they work.
Now, what you want aestetically9 unless my understanding is off is EQUAL HEIGHT COLUMNS ( tongs of tutorials on that out there ) Basically there are TWO WAYS.
First we get rid of those height declarations, as i said before that not the way DIVs and CSS work.
then you create a SMALL bg graphic which you will assign to the container of both your divs, and repeat vertically. That really is the easiest way.
Another technique involves creating separate wrapping shells ( wrapped around ll your content) for each BG change as such:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.mainCont{background: #555; overflow:hidden;padding-right:250px;}
.inner{ background:pink; width:100%;}
.left , .inner{float:left; width:100%;}
.right{float: right; width:250px; margin-right: -250px; }
</style>
</head>
<body>
<div class="mainCont">
<div class="inner">
<div class="left">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<div class="right">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. lore </div>
</div>
</div>
</body>
</html>
hope that helps
Bookmarks