Horizontal line, specify the color and height BBcode

Post Reply
Steve
Posts: 36
Joined: Sun Oct 01, 2017 3:08 pm

Horizontal line, specify the color and height BBcode

Post by Steve » Wed Dec 27, 2017 2:04 pm

Lines created in Prosilver are 1 pixel high, light grey (#CCCCCC) and difficult to see. Use this code to create lines with any color and height. The number is the line height in pixels. Colors are CSS color names aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow or HTML colors like #6492db and grey scale colors from #000 through #fff.



 
BBcode usage:

Code: Select all

[Line={NUMBER}]{COLOR}[/Line]
HTML replacement:

Code: Select all

<hr style="color:{COLOR}; border-color:{COLOR}; background-color:{COLOR}; height:{NUMBER}px; width:100%;"></hr>
Help line:

Code: Select all

[Line=Line-Height]COLOR[/Line]


To get the heavy green line below in a post use:

Code: Select all

[Line=20]GREEN[/Line]

Last edited by Steve on Sun Jan 21, 2018 11:42 am, edited 2 times in total.

Post Reply