Skip to main content
Oleg_Shynkarenko
Known Participant
August 27, 2021
Question

Different font in parts of a table

  • August 27, 2021
  • 1 reply
  • 96 views

I add code Style to break lines so that they would not enlarge the table. 

code {
  word-break: break-all;
}

But after that the font I used in the table changed. I use IBM Plex Sans Medium font in the left side of the table 

The code of the first table row (Total Sales) looks like that:  

As you see, I added IBM Plex Sans Medium font twice here. So why does not it look like IBM Plex Sans Medium?

 <tr>
        <td style="text-align: left;">Total Sales</td>
        <td style="text-align: left;font-family: &#39;IBM Plex Sans Medium&#39;">
          <p class="body1"><code class="LongLine"><span style="font-family:&#39;IBM Plex Sans Medium&#39;;">balp[70%] - різниця оборотів по рахунку 70 (його субрахунків) за вказаний період</span></code></p>
        </td>
      </tr>
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 27, 2021

    I've noticed that in the Authoring view, sometimes the fonts don't look the way I expect them to, even with the CSS specified on the topic. Does the desired font show up after you build the output? If not, when you "inspect" the element in the browser, is it substituting a font you've specified in your other definitions (such as the p element, body1 class, or LongLine class)?

    I had font issues that were solved by specifying (or importing) the font definition at the top of my CSS file with the @1552174 or @fontface rule.