I have a floating parent div that has no set height that expands the length of the sidebar.
I'd like a child div inside the parent div to expand the height of the parent div but I can't figure it out.
I've tried making the parent div position:relative and the child div position:absolute so that I could just make height:100%, but then the div disappears altogether.
You can see the issue here: http://www.icc565.com/spring2014/ncdevoe/wordpress/?page_id=5
Basically, I want the white background to expand the height of the sidebar like the parent div does.
If anyone could help me out with this, it would be greatly appreciated.
Here's my code:
CSS
.container {
width: 960px;
margin: 0 auto;
}
section {
width: 640px;
float: left;
}
aside {
width: 290px;
float: right;
}
.page {
width: 580px;
margin: 0 auto;
background-color: white;
}
HTML
<section>
<div class="page">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
</section>