ID:156123
 
I remember finding a tutorial before but not sure what it is called and am trying to figure it out. Basically I need to know the code to have a border around a set of text with a title for it, here is a small mockup:

|--Title here------------|
|Some text here...................|
|--------------------- |

Minus the dots. Just used em for spacing. Thanks.
In response to Spunky_Girl
<table>text</table>.. Basically..

If you want correct formatting..
<table><tr><td>text</td></ tr></table> although thats not really necessary in BYOND

@SpunkyGirl:
Proper html for an external link is
<a href='http://www.link.com'>Link</a>
not
<a href='www.link.com'>Link</a>
In response to Xyphon101
Just like how the proper format is to use double-quotes and not single-quotes? Just stay quiet. >_>
In response to Spunky_Girl
Spunky_Girl wrote:
Just like how the proper format is to use double-quotes and not single-quotes? Just stay quiet. >_>
Ah, I use single quotes as a habit because unlike most people I put my html in echos of my PHP. And, I am too lazy to backslash so instead I use single quotes. However, the difference is that
<a href='http://www.link.com'>Link</a>
works how I want it to(in fact, technically there is no problem at all with using single quotes, and isn't necessarily formatted wrong, if anything its frowned upon), while
<a href='www.link.com'>Link</a>
doesn't(if you didn't notice, the link leads you to http://www.byond.com/developer/forum/www.w3schools.com

I assume it was just an accident, I just thought I'd point it out so you could fix your post.
In response to Xyphon101
Xyphon101 wrote:
However, the difference is that
<a href='http://www.link.com'>Link</a>
works how I want it to(in fact, technically there is no problem at all with using single quotes, and isn't necessarily formatted wrong, if anything its frowned upon), while
<a href='www.link.com'>Link</a>
doesn't(if you didn't notice, the link leads you to http://www.byond.com/developer/forum/www.w3schools.com
I assume it was just an accident, I just thought I'd point it out so you could fix your post.

Yes, I fixed my post. But I, nor you, mentioned nothing about "what works and what's technical". You mentioned improper format, and is thus the topic of my response.
In response to Spunky_Girl
Again, I have to use it like that because of PHP. Anyway, I wasn't insulting you, I was trying to help.. I honestly don't care if my HTML formatting is wrong, as long as it works, I'll be the first to say that my HTML formatting is absolutely terrible. Laziness brings sloppiness, after all.
In response to Spunky_Girl
Just a note; both formats are correct. It's a matter of preference. The single-quote method makes it easier on people using languages that would normally require escaping a double-quote. It's a pain in the butt having to escape things in a long string.

(In languages like PHP you can interchange single and double quotes in most cases, such as echo 'Hello "world"')
In response to Nadrew
You can't do
echo "Hello world<a href="link">link</a>";
, because it already escaped the string.. Just like you can't do
echo 'Hello world<a href='link'></a>';
, which is why I use single quotes for links.
In response to Spunky_Girl
I know of that sites existence, it's just hard to find something you don't know the name of. I know how to program tables, its just that this one was a border with a title spot an the top left. I guess I'll have to make due with what I know.
In response to DisturbedSixx
Title on the top left? Well, I'm not sure about in DM, but you can do that entirely with tables(although, speaking web-design wise, DIVs are better, but that's irrelevant).
Do you want it all on the left, or just the title, with the text in the center? Either way, it's easy to do. Also, just a little note, don't call anything involving html "programming", because it's not a programming language, it's a markup language.
<table width='600px' border='1px'><tr><td>Title</td></tr><tr><td>Text</td></tr></table>

Should be essentially what you're looking for... If you want the second part to be centered, change it to
<table width='600px' border='1px'><tr><td>Title</td></tr><tr style='text-align:center;'><td>Text</td></tr></table>


If that's not what you're looking for, then I don't know what to say.
In response to Xyphon101
If I remember correctly, it was more of a border then a table and the title was right on top of the border in the upper left. Wish I could find some sort of picture or knew the name of it.

[EDIT] The dividers in the forum look close to what I want, except instead of a line its an entire border.
In response to DisturbedSixx
One line is a simple:
<hr />

If we're talking about an entire border WITH the title IN the border... Something like this would suffice:
<table width='600px' style='border:1px solid black;'><tr style='border-bottom:0px'><td>Title</td></tr><tr><td>Text</td></tr></table>