'How to increase the width of the horizontal line using Markdown on GitHub

I am using the below code for drawing the horizontal line

"-----"

"***"

I want to change the color of the horizontal line plus change the height also.

How can I do this?



Solution 1:[1]

From the cheatsheet

Three or more...

Hyphens

---


Asterisks

***


Underscores

___


give you the same thing, which is the standard horizontal line.

You cannot style markdown, you get what you get. Github chooses the style.

Solution 2:[2]

Instead of using *** or ---, try:

<hr style="border:2px solid gray">

Solution 3:[3]

You can add a thinner line than the normal one by simply writing an empty heading #

Example:

Example

Solution 4:[4]

Use:

<hr style="border:2px solid blue">

Here the colour of the line has been changed as well. This method uses standard HTML markup and works much better than just "***".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 darryn.ten
Solution 2 Peter Mortensen
Solution 3 Philipp
Solution 4 Peter Mortensen