View Single Post
Old 12-31-2024, 03:32 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,564
Karma: 169115148
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
added code tags

Using a font name with spaces in a inline style requires wrapping the name in 's. The single ' in the font name also needs to be wrapped in 's.

In a stylesheet, you would use " but an inline style mandates the '.

Code:
<h2 style="text-align: center; font-family: 'Gabriel Weiss''' Friends Font', sans-serif;">Content</h2>
I would suggest simply using <h2> and the following in a CSS stylesheet linked to your text file (the 4em font size is simply to allow easily seeing the difference between the CSS and inline style):
Code:
<h2>Content</h2>
<h2 style="text-align: center; font-size: 2.5em; font-family: 'Gabriel Weiss''' Friends Font', sans-serif;">Content</h2>


h2 {
  text-align: center;
  font-size: 4em;
  font-family: "Gabriel Weiss' Friends Font", sans-serif;
}

Last edited by DNSB; 12-31-2024 at 03:36 PM.
DNSB is offline   Reply With Quote