ASP.NET MVC で作成したページのコンテンツサイズをウィンドウサイズに合わせて広げる方法です。 高さを広げる方法 幅を広げる方法 について記載します。 高さを合わせる DEMOページ html <body> <div class="navbar"> <div id="container"> @RenderBody() </div> </body> css html { height: 100%; } body { height: 100%; padding-bottom: 0; } .container { min-height: 100%; height: auto; } html、body の height: 100% .container の高さを100%にするのが目的ですが、height、min-heightの効果は直近の親要素のheightに依存するので、親であるbody