From the course: HTML: Tables

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Solution: Style HTML tables

Solution: Style HTML tables - HTML Tutorial

From the course: HTML: Tables

Solution: Style HTML tables

(upbeat music) - [Woman] All right, so how did you do with that table challenge? You might have run into some interesting styling dilemmas. And so I want to walk through what I did in my particular solutions. So I stuck with the same colors that I had been using in my previous example, but I styled things up a little bit differently here. So let me just walk you through my CSS and the HTML I didn't change at all. So, here of course one of the first things I do pretty much in anything that I've ever done is change the font family to a sans-serif. That immediately makes everything look better in my opinion. I put on the border collapse on this table, so that we don't get that unsightly little gap in between all of our cells. And then of course took my ths' and aligned them all left and gave them that tan background color with white text. I reformatted my caption, this time I didn't make it bold, just try to do something a little bit different. And then I styled up my tds' and my ths' to…

Contents