Table tutorial


#1

I am stuck on step 12 of the table tutorial. It asks you to change the font size to 18 pixels for the table headings and table data which i have done and it says i havent. Here is the code:

body {
  background: #EEE;
  margin: 0;
  padding: 0;
}

/* Navigation */

.navigation {
  box-sizing: border-box;
  background-color: #3587A4;
  overflow: auto;
  padding: 18px 50px;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 999;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  color: #FFF;
  display: inline-block;
  font-family: 'Oxygen', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0;
  padding: 20px 18px 10px 18px;
  text-transform: uppercase;
}

.active {
  color: #88CCF1;
}

/* Table */

table {
  height: 40%;
  left: 10%;
  margin: 20px auto;
  overflow-y: scroll;
  position: static;
  width: 80%;
}

thead th {
  background: #88CCF1;
  color: #FFF;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 2px;
  text-transform: uppercase;
}

tr {
  background: #f4f7f8;
  border-bottom: 1px solid #FFF;
  margin-bottom: 5px;
}

th, td {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 18px;
  padding: 20px;
  text-align: left;
  width: 33.3333%;
}

.search {
  background-color: #FFF;
  border: 1px solid #DDD;
  border-radius: 3px;
  color: #AAA;
  padding: 20px;
  margin: 50px auto 0px auto;
  width: 77%;

Please help. Tim


#2

Please post a link to the exercise. Thanks.

The last rule in your style sheet is missing the closing brace on the declaration block. Is that that a mispaste?


#3

https://www.codecademy.com/courses/learn-html-tables/lessons/tables/exercises/table-css?action=resume_content_item&course_redirect=learn-html and it was a mispaste. Thanks


#4

For this rule, I believe the font size is 16px.


#5

It asks for it to be set to font-size 18


#6

As I understand the instruction, it means,

th, td {
    font-size: 18px;
}

#7

that worked, thanks a lot mate


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.