full line underline/overline/border code

molynsi
10 Jul 2018, 20:43

How can I make a simple line across the screen, whether or not text is present. Formatting nbsp's is sloppy and silly. Trying to do it with box borders, but I just can't seem to get the code right.


The Pixie
10 Jul 2018, 20:56

Try this (horizontal ruler in HTML):

<hr/>

molynsi
10 Jul 2018, 21:03

Omg that is fabulous. Is there a way to change it's color?


molynsi
10 Jul 2018, 21:49

I figured it out, using hr style, however there is a weird gap underneath inside my game,


sample text.


molynsi
10 Jul 2018, 21:52

like there is an invisible line break above and below.


molynsi
10 Jul 2018, 22:39

Alright, this is an odd work around but here is what I came up with incase it'll help someone else someday.<hr style="margin-bottom:-15px">
changing the amount of pixels to suit. My in game text size is set to 15,


so -15 looks like a normal strike out above the text.
-25 like an overline,
-45 line an underline.
and so forth.

molynsi
10 Jul 2018, 22:51

To also affect thickness and color, this needs to be added:
<hr style="border:.5px solid red; margin-bottom:12px">:


.5px is the smallest possible. Hex#s don't seem to work here, and I've only had success using color labels. For whatever reason, it also won't work without the word solid.