Hello, How are you dude?
May be you are wondering that why that crippy scrollbar comes when we add
width: 100%
to html(or body) element in css...
A simple Technique to fix is just add
margin: 0
to that element.
Add below code:
html, body {
width: 100%; height: 100%; margin: 0;
}
And remember when you are applying
height: 100%
you should/must not applymargin-top
property to the first element. Because when you apply it, Vertical-scrollbar will appear. You can applypadding-top
property to the element instead of themargin-top
property. ( It's different I know but can be a solution =) )