Answers for "html body not filling page width"

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
0

body width full

body {
    min-width: fit-content;
}
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language