【質問したいこと】
contentのclassのheight指定方法について。
headerとfooterのclassの高さが固定値であって、contentのclassの高さをparentの残っている要素の高さいっぱいまで指定するCSSの設定方法。
条件によって、動的にfooterのclassは消えたりします。(display:noneします。) その際もcontentのclassの高さがcssの設定だけで動的変更される設定方法が知りたいです。
宜しくお願いします。
<div class="parent"> <div class="header">A</div> <div class="content">B</div> <div class="footer">C</div> </div> <style> .parent { height:100%; } .header { height:12px; } .content { height:? } .footer { height:16px; } </style>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。