Deleted some code
The following is an illustration of an entire body element (with a black border for clarification purposes) centered on a page. A width must be set for the element, then the left and right margins are set to auto. Here's how:
body {
width: 80%;
margin-right: auto;
margin-left: auto;
border: 1px solid black;
}
Try this
159 views
Usually answered in minutes!
Please tell the website name
×