mayur rahatekar
mayur rahatekar

Reputation: 4460

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?

Upvotes: 53

Views: 50008

Answers (4)

Tirthankar Patnaik
Tirthankar Patnaik

Reputation: 113

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 "***".

Upvotes: 8

Suman
Suman

Reputation: 738

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

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

Upvotes: 61

Philipp
Philipp

Reputation: 438

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

Example:

Example

Upvotes: 36

darryn.ten
darryn.ten

Reputation: 6983

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.

Upvotes: 39

Related Questions