Skip to content

Can I custom the color of bold text #1704

Closed Answered by trusktr
phk1042791021 asked this question in Q&A
Discussion options

You must be logged in to vote

You can customize the style of your site just like any other site using CSS.

Try putting this in your html file:

<style>
  /* Any bold text will be color deeppink. */
  strong {
    color: deeppink;
  }
</style>

This works because the markdown outputs <strong> HTML elements around your bold text, so you can style those <strong> elements.

You can find out by right-clicking on bold text, like this one, then selecting the Inspect option, and you will see which element is used.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@phk1042791021
Comment options

Answer selected by phk1042791021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants