From the course: Design the Web: Styling a Table
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Styling the table footer - phpMyAdmin Tutorial
From the course: Design the Web: Styling a Table
Styling the table footer
- [Voiceover] Now, before add any additional styling, such as hover states and styles for the first column, let's take a few minutes and take care of styling the footer. So in the CSS file, let's come in here, let's copy our table#planets. Let's hit a few returns. Let's paste that after all of our table body rules. Then a space. Then we'll type tfoot. Then a space. Put in our brackets. For the main footer element, we're gonna set a font size to .8 ems, this will be 20% smaller than the base font. So in the preview area, we can see that showing up here. Now, next we'll target the table row. We're gonna add a border top, so we can separate the footer from the body content. So in the next line, table#planets, hit a space. Tfoot, space, tr for table row. Put in our brackets. We're gonna set a property of border top. For the width, we're gonna set this to 2 pixels, then a space. Style's gonna be solid, and then for the color, I wanna use the same color as the background of the header area.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Adding styles to the main table element4m 51s
-
(Locked)
Targeting all TH and TD tags4m
-
(Locked)
Setting the column widths with nth child3m 31s
-
(Locked)
Styling the table body2m 39s
-
(Locked)
Styling the table footer3m 47s
-
(Locked)
Setting styles for the first column3m 10s
-
(Locked)
Adding highlights to rows5m 54s
-
(Locked)
Adding hover states (rollovers) to rows8m 4s
-