How do I center a div in a webpage using CSS?
To position the content of a div so that it is centered on your page, you can use the following CSS code:
```css
div {
  width: 100%; /* Set width to match parent */
  text-align: center; /* Center text vertically */
}
```
This will centre the inner contents of the div. To align the content horizontally, replace `text-align` with `justify`.