In the above web page photo I have taken a <div>
with height : 100vh;
and width : 100%;
I don't want the white body border.
Someone please help !!!
In the above web page photo I have taken a <div>
with height : 100vh;
and width : 100%;
I don't want the white body border.
Someone please help !!!
Well, that margin is there because the body
element has a default margin
, set by the browser. To get rid of it, you need to set margin: 0
on the body
element.
This question has actually been asked many times before, in various ways. For future questions you may have, it may be useful to take the follow steps;
As you haven't add any coding.So in general you can add this and try:
width:100%;
max-width:100%;
margin-left:auto;
margin-right:auto;
I think this is an issue with default padding or margin creating a white border... Add the below to ur css....
.your_div_class{
width:100%;
height:100%;
padding:0px;
margin:0px;
}
Use that code on your style or .css file and you'll be fine:
body {
height: 100%;
width: 100%;
margin: 0px;