HTML in Blogger: Changing the Color of a Horizontal Line
To add a horizontal line in Blogger:
Merely go to the "HTML section" when writing the post, and paste <hr> wherever you would like the horizontal line to occur (you can reposition it later in the "compose section").
When I say you can reposition this line in the "compose section", I am referring to pressing the enter key, etc before the line to move it down, or deleting spaces above to move it back up.
When I say you can reposition this line in the "compose section", I am referring to pressing the enter key, etc before the line to move it down, or deleting spaces above to move it back up.
Here is an example of a horizontal line (in the default color):
To recolor a horizontal line in Blogger:
When you create the horizontal line, instead of simply typing <hr>, type <hr color="#******" />.
The "#******" I show here merely means the number value of the color you choose.
The "#******" I show here merely means the number value of the color you choose.
For example: If I want a specific dark yellow-green color (the color I use for the text in my blog), I would use the number value "#5f9020".
So I would have the HTML code: <hr color="#5f9020" />
And thus I have the following horizontal line:
You can find many (if not all) color codes at https://htmlcolorcodes.com/.
If you want to use the same color as the text from your blog, then just copy the number value of the post text color, then paste it into your HTML horizontal line code.


This comment has been removed by a blog administrator.
ReplyDeleteThank you, dear viewer, for your support!
Delete