HTML: Horizontal Lines
When using Canvas, is it best practice to break up large pages of text into more easily digested chunks. One quick and easy way to do this is to use horizontal lines. Just copy, paste, & personalize the code snippet below!
Anatomy of the Code Snippet

Examples
<hr style="border: 4px solid blue;" />
<hr style="border: 2px solid green;" />
Steps to Create a Horizontal Line
1. Select and copy the code snippet:
<hr style="border: 4px solid blue;" />
2. Navigate to an existing Canvas page and go to Edit. Switch to HTML Editor.
3. Paste the code above & switch back to Rich Content Editor to view the results.
4. To modify the code to make the line thicker or a different color:
- Raise the number of pixels (yellow highlighted text in the code snippet) to make it thicker.
- Replace the blue highlighted text in the code snippet with the color you want to use.
More Examples
Blue line 1px thick
Red line 2px thick
Green line 4px thick
Purple line 6px thick
Yellow line 8px thick
Orange line 10px thick
Pink line 12px thick
Hex Color Code Example
If you know the hex color code for the color you'd like to use, use the code snippet below and replace the blue-highlighted text with the hex color code for your desired color.
<hr style="border: 2px solid#5b9aa0;" />
Back to HTML Homepage