I use for modal window SimpleModal on jQuery.
How to make the header and footer inside the modal window fixed so that the contents scroll inside them?

 <div id="simplemodal-container"> <div>Вот тут бы заголовок</div> <div class="simplemodal-wrap"> <div id="simplemodal-data"> Ну а тут куча содержимого со скроллом </div> </div> <div>А вот тут подвал</div> </div> 

    1 answer 1

    Maybe I do not understand the essence of the issue, but I propose such a solution. For the simplemodal-wrap class, set the desired height and set overflow: auto;

     .simplemodal-wrap { height: 400px; overflow: auto; } 
    • so that's just the point, simplemodal-wrap already has overflow: auto - Inky Rein
    • Let's get the complete code: css, html, jquery. - Kydris