# 6.2: Favorites CSS

## Style the whole table

Back to the `style.css` file. Let's start by moving the table into the center of the section... in the past we've used `text-align` and `justify content` - but that is only for text based content. For a whole table we can set the left-right margins to `auto` and it will set the left and the right margins to be automatically calculated and balanced. We will also add 32px of margin to the top and bottom.

...and... include a black border around the entire table...

```css
table {
  margin: 32px auto;
  border: 1px solid black;
}
```

![Whole Table](https://4118857389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAU8YfYZY6fNRjyl8-Q%2F-LAU8eVd3Wu50JiXv8yI%2F-LAU8jyMDJBAe6cIpm9R%2F6.2-whole-table.png?generation=1524162308979820\&alt=media)

![Whole Table Result](https://4118857389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAU8YfYZY6fNRjyl8-Q%2F-LAU8eVd3Wu50JiXv8yI%2F-LAU8jyXVcHJ7FbFKPd4%2F6.2-whole-table-result.png?generation=1524162307485140\&alt=media)

## Table headers

Right now the table headers don't stand out very much. Let's add a gray background to the headers.

```css
th {
  background-color: gray;
}
```

![Headers](https://4118857389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAU8YfYZY6fNRjyl8-Q%2F-LAU8eVd3Wu50JiXv8yI%2F-LAU8jzBp_332CILMKdD%2F6.2-headers.png?generation=1524162316166419\&alt=media)

## Style the cells

Everything is very squished together... each cell (*both the* `<td>` *and* `<th>` *tags*) should get some breathing room... let's center the content and add some borders around them too.

```css
td, th {
  text-align: center;
  padding: 10px;
  border: 1px solid black;
}
```

![Cells](https://4118857389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAU8YfYZY6fNRjyl8-Q%2F-LAU8eVd3Wu50JiXv8yI%2F-LAU8k-eLyhG24LWI2hh%2F6.2-cells.png?generation=1524162315120828\&alt=media)

![Cells Result](https://4118857389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAU8YfYZY6fNRjyl8-Q%2F-LAU8eVd3Wu50JiXv8yI%2F-LAU8k00GS6hN5FcyL7p%2F6.2-cells-result.png?generation=1524162315626677\&alt=media)

## Next Section

The table is easily readable now\... so let's finish things up by adding a footer to the bottom of the page. Go to [7.1: Footer](https://eleven-fifty-academy.gitbook.io/intro-to-coding/part-7-footer/7.1-footer-html).
