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.
ID:156123
Dec 22 2010, 2:08 pm
|
|
Dec 22 2010, 3:22 pm (Edited on Dec 22 2010, 3:54 pm)
|
|
w3schools
|
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>
<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>
<a href='www.link.com'>Link</a>
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>
<a href='www.link.com'>Link</a>
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>"; echo 'Hello world<a href='link'></a>'; |
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> |