The time now is Fri Nov 08, 2024 7:32 am
All times are UTC + 0
Author
Message
DeathRay2K
CommanderJoined : 01 Sep 2002Location : Canada
Posted: Sun Aug 21, 2005 9:46 pm Post subject:
How to make nice ASCII borders
There are several kinds of borders that you can use, and you can combine them using the correct ASCII character. The point is, if you've been alive long enough to have played old text dos games, then you've probably seen these before. And now you'll know how to use them on the internet using special codes and fixed-width text. (Which someone doesn't see a need for...)
So, I will use the [co de] tags, which make things a bit more difficult.
First of all, these are all of the characters that you need:
Code:
─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ▀ ▄ █ ▌ ▐ ░ ▒ ▓ ■ □ ▪ ▫ ▬ ▲ ► ▼ ◄
There is one way to force the text to use a fixed-width, and that's the <p re> HTML tag.
I'll show you what I mean with a few examples.
Without <p re>
┌────────┐
│This is │
╞════════╡
│Without │
│the pre │
│tag. │
╘════════╛
░▒▓█
Unfortunately even the pre tag won't fix the vertical spacing on a forum, so I must use the <code> tag for multiline presentations.
Code:
┌────────┐
│This is │
╞════════╡
│with │
│the code│
│tag. │
╘════════╛
░▒▓█
The <p re> tag will do with normal HTML what the code tag does with forums.
Even cool little pictures are possible using the ASCII characters.
Code:
░░░░░░░░░░░░░░░░░░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░
░▒▓█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▓▒░
░▒▓█►─═DeathRay2K═─◄█▓▒░
░▒▓█╒══════════════╕█▓▒░
░▒▓█╠──────────────╣█▓▒░
░▒▓██████████████████▓▒░
░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░░░░░░░░░░░
And without fixed-width:
░░░░░░░░░░░░░░░░░░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░
░▒▓█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▓▒░
░▒▓█►─═DeathRay2K═─◄█▓▒░
░▒▓█╒══════════════╕█▓▒░
░▒▓█╠──────────────╣█▓▒░
░▒▓██████████████████▓▒░
░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░░░░░░░░░░░
In fact, even the font that [co de] uses isn't optimal, best would be the Courier font.
Now, the HTML codes that make these things work. Find out by quoting this post and seeing for yourself. _________________ QUICK_EDIT
Back to top
D
CommanderJoined : 25 Oct 2002Location : United Kingdom
Back to top
Nuclear General
Scorpion SniperJoined : 30 Apr 2005Location : USA
Back to top
Denmon
GeneralJoined : 12 Jun 2004Location : /S/weden
Posted: Wed Aug 24, 2005 9:08 am Post subject:
Its basicly used to make nametags and shit
Code:
___ ___ ___
/\ \ /\ \ /\ \ ___ ___
/::\ \ /::\ \ /::\ \ /\ \ /\ \
/:/\:\ \ /:/\ \ \ /:/\:\ \ \:\ \ \:\ \
/::\~\:\ \ _\:\~\ \ \ /:/ \:\ \ /::\__\ /::\__\
/:/\:\ \:\__\ /\ \:\ \ \__\ /:/__/ \:\__\ __/:/\/__/ __/:/\/__/
\/__\:\/:/ / \:\ \:\ \/__/ \:\ \ \/__/ /\/:/ / /\/:/ /
\::/ / \:\ \:\__\ \:\ \ \::/__/ \::/__/
/:/ / \:\/:/ / \:\ \ \:\__\ \:\__\
/:/ / \::/ / \:\__\ \/__/ \/__/
\/__/ \/__/ \/__/
Code:
_____ ___ ___ _ _
( _ )( _`\ ( _`\ (_)(_)
| (_) || (_(_)| ( (_)| || |
| _ |`\__ \ | | _ | || |
| | | |( )_) || (_( )| || |
(_) (_)`\____)(____/'(_)(_)
_________________Please, read the signature rules of the forum. QUICK_EDIT
Back to top
j4m3sb0nd
CommanderJoined : 10 Nov 2004
Back to top
Havoc
CommanderJoined : 04 Jan 2005Location : Toronto, Canada
Back to top
DeathRay2K
CommanderJoined : 01 Sep 2002Location : Canada
Back to top
Nuclear General
Scorpion SniperJoined : 30 Apr 2005Location : USA
Back to top
D
CommanderJoined : 25 Oct 2002Location : United Kingdom
Back to top
Clarkson
GeneralJoined : 25 Aug 2004Location : DAS BOOT IM DER OSTSEE
Back to top
DeathRay2K
CommanderJoined : 01 Sep 2002Location : Canada
Back to top
friday-13th
CommanderJoined : 08 Aug 2005Location : Toronto Ontario
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
Powered by phpBB © phpBB Group
[ Time: 0.2540s ][ Queries: 11 (0.0085s) ][ Debug on ]