Jump to content
  • 0

Specifying a Font in HTML Block


neilcovert
 Share

Question

2 answers to this question

Recommended Posts

  • 0
39 minutes ago, neilcovert said:

I've created an HTML block to be used on a Data Page describing particular entries below that block.  How do I specify the Google Font Raleway in the HTML code?

 

Thanks.

Neil

Hi Neil,

First select needed font at: https://fonts.google.com/

You will get a link to the css file and css attributes. For example, for Indie flower font family you will get the following code:

  1. font-family: 'Indie Flower', cursive;

<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">

Then you need to paste that link to the css file in the header of the datapage. After that use provided css attributes to define inline style for text in html block.

<p style="font-family: 'Indie Flower', cursive;">Your text</p>

Hope it helps :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...