I defined my html{ width:1820px} and body{width:1820px} since I am realoading page its showing all my content are coming on left instead of showing in center can someone tell what wrong is happening in it. I guess some other element propert is overriding it since im working on project but if I want to use this specific size of page using !important but its not working. output image
CodePudding user response:
Try setting margin: auto
as well. It will move the content in center.
CodePudding user response:
Here is my try
html {
width: 100%;
}
body {
width: 1820px;
margin: auto;
}
CodePudding user response:
You can add this to your css.
body{
margin: 0;
padding: 0;
box-sizing: border-box;
}