Why isn't my CSS font-weight changing?

Hi,

I’m trying to customize a table inside a page with css and I created some classes inside base.css but the font-weight is not changing. I want to use the font Oswald (the same as my heading). What am I doing wrong?

Here’s the code I’m adding in base.css to define the classes:

.table-medidas {
  border-collapse: collapse;
  border: 1px solid black;
  font-family: var(--font-heading-family);
  text-align: center;
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
}

.th-medidas {
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-weight: 400
}

.td-medidas {
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  text-align: center;
  font-weight: 300
}

.caption-medidas {
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: #333;
  margin-bottom: 8px;
}

.thead-medidas {
  background-color: #99552B;
  color: white;
  font-weight: 400;
}

.tbody-medidas tr:nth-child(odd) {
  background-color: #fff;
}

.tbody-medidas tr:nth-child(even) {
  background-color: #eee;
}

.tbody-medidas th {
  text-align: left;
  padding-right: 20px
}

.tfoot-medidas td {
  text-align: right;
  padding-bottom: 6px;
  padding-top: 6px;
  font-weight: 200
}

And no matter the font-weight, nothing changes; all the weights remain the same.

What am I doing wrong? My theme is Dawn and the page in question is https://j-hess.com/pages/teste

Thank you in advance

Hi @j-hess ,

Use font-weight 600 instead of 400; that will affect boldness.

I hope you have added a font family with variants of weight like light, regular, medium, bold etc.

I’ve tried a few different weights (200, 400, 600, 800) but none have worked.

I’m sure the Oswald font has many weights, but maybe I should define the font in other way that I don’t know how…

@j-hess , Could you please show me how you have added the fonts to your website?