I have a responsive design that is working well, but I am experiencing an issue on mobile devices where there is white space at the bottom of the page.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
overflow-x: hidden;
}
body {
font-family: 'Open Sans', sans-serif;
font-size: 16px;
line-height: 1.6;
overflow-x: hidden;
}
I attempted to add
html {
height: 100%;
}
body {
min-height: 100%;
}
but this did not resolve the issue.
I reviewed the CSS code for any elements with excessive height, but found none.
I also added
*{
border: 1px solid red;
}
to help identify the issue, but I was still unable to fix it.
I tried setting margin
and padding
to 0 for the p
element in the footer, but this did not solve the problem either.
Here is the online link to my website:
my website
This issue only occurs on mobile devices; tablets and PCs do not have this problem.
How can I eliminate this white space at the bottom of the page on mobile devices?