I also tried looking into other similar forums and tried changing the position to absolute but doesn't work too.
padding: 280px 2px 15px 400px;
padding: 35px 5px 15px 20px;
padding: 15px 10px 8px 2px;
lets make it simple if you have a div you want to make adjust to its center lets assume height of your div is 300px and width is 400px all you have to do is
left:50%; this will do the job and it will adjust your div to center for every screen resolution.