Answers for "html body height not filling 100% of the page"

1

html body height not filling 100% of the page

<!--
This is caused by a class name being set to "body". This can be applied to any other element!
For example:
  <div class="body"> - This is the WRONG code! Becouse "body" is a name of an element.
  <div class="container"> - This is the RIGHT code! Becouse "container" is not a name of an element.

Now just do this in your css code:
html, body {
  height: 100%;
  width: 100%;
}

 !! Better explanation on github: sokiGit/helpForScripters/bugs/html/body-height.md

-->
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language