Assuming that you mean the entire accordion, you have two possible solutions.
First, if you can set a fixed height for the parent, you can simply use height:100%; An example markup would look something like this:
HTML <div class="page"> <div class="accordion"> content </div> </div>
CSS .page { height: 800px; //or whatever } .accordion { height: 100%; } .page { height: 800px; //or whatever } .accordion { height: 100%; }
Alternatively, as this is often impossible. You can use javascript / jQuery. Something like this will work:
jQuery(document).ready(function($) { //cache the accordion object to variable var accordion = $('div.accordion'); //set accordion object equal to target divs height accordion.height($('div.page').height()); });
Example: http://jsfiddle.net/Ye2xq/11/
Calvin
source share