Tables - why are headings in different font?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Tables - why are headings in different font?

wolandscat
Here's the output.

Here's the asciidoctor source (second table down).

Why does the header row come out in Times Roman (or whatever it is) and the body come out in Helvetica (or whatever that is)?

It's not obvious to me after rereading the 'tables' part of the manual!

thanks for any pointers
Reply | Threaded
Open this post in threaded view
|

Re: Tables - why are headings in different font?

mojavelinux
Administrator
The text in the cells of a head row do not get wrapped in a "p" element. Therefore, you need to style the "th" element inside of the "thead" element. This style is missing from your stylesheet.

You'd need something like:

thead th.tableblock {
  font-family: "Open Sans", "DejaVu Sans", sans-serif;
}

otherwise, it inherits from body (which is set to Noto Serif in your stylesheet).

Cheers,

-Dan

On Sat, Aug 12, 2017 at 2:51 AM, wolandscat [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Here's the output.

Here's the asciidoctor source (second table down).

Why does the header row come out in Times Roman (or whatever it is) and the body come out in Helvetica (or whatever that is)?

It's not obvious to me after rereading the 'tables' part of the manual!

thanks for any pointers


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Tables-why-are-headings-in-different-font-tp5836.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Tables - why are headings in different font?

wolandscat
I had various th.tableblock blocks, to which added the font-family; that fixed it. Thanks!