Im pulling my hair out trying to center this page. The book for my class has a line-by-line example on how to do it, and everywhere I google gives me the same answer, but I cant get the page to center and im not sure why it will not center. He wanted us to make a style rule for the body element, so unless im using the wrong element, then im not sure what im doing wrong.
Heres what my output is: http://prntscr.com/id9kp0
The page content is supposed to be centered.
CSS:
Filename: pc_specials.css
*/
/* Page Body Styles */
body {
margin-left: auto;
margin-right: auto;
max-width: 950px;
min-width: 640px;
width: 95%;
}
body > header > img {
display: block;
width: 100%;
}
/* Image Styles */
img {
display: block;
width: 100%;
}
/* Horizontal Navigation Styles */
.horizontal li{
display: block;
float: left;
width: 16.66%;
}
a:link {
display: block;
}
/* Row Styles */
.newRow {
width: 100%;
}
newRow::after {
clear: both;
content: "";
}
div[class*='col-'] {
float: left;
padding: 2%;
box-sizing: border-box;
}
div[class*='col-1-1'] {
width: 100%;
}
div[class*='col-1-2'] {
width: 100%;
}
/* Column Styles */
/* Specials Styles */
/* Award Styles */
/* Footer Styles */
HTML: https://pastebin.com/Ts71GM97
Any help will be appreciated, ive been stuck on this for a few hours and ive tried everything I can think of.