[html] How to make a div 100% height of the browser window

Easiest:

_x000D_
_x000D_
html,_x000D_
body {_x000D_
  height: 100%;_x000D_
  min-height: 100%;_x000D_
}_x000D_
body {_x000D_
  position: relative;_x000D_
  background: purple;_x000D_
  margin: 0;_x000D_
  padding: 0;_x000D_
}_x000D_
.fullheight {_x000D_
  display: block;_x000D_
  position: relative;_x000D_
  background: red;_x000D_
  height: 100%;_x000D_
  width: 300px;_x000D_
}
_x000D_
<html class="">_x000D_
_x000D_
<body>_x000D_
  <div class="fullheight">_x000D_
    This is full height._x000D_
  </div>_x000D_
</body>_x000D_
_x000D_
</html>
_x000D_
_x000D_
_x000D_

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to css

need to add a class to an element Using Lato fonts in my css (@font-face) Please help me convert this script to a simple image slider Why there is this "clear" class before footer? How to set width of mat-table column in angular? Center content vertically on Vuetify bootstrap 4 file input doesn't show the file name Bootstrap 4: responsive sidebar menu to top navbar Stylesheet not loaded because of MIME-type Force flex item to span full row width

Examples related to height

How to Determine the Screen Height and Width in Flutter How do I change UIView Size? Adjust UILabel height to text iFrame Height Auto (CSS) CSS height 100% percent not working What is the height of Navigation Bar in iOS 7? Relative div height How to fill 100% of remaining height? CSS div 100% height Change UITableView height dynamically