Help - Search - Members - Calendar
Full Version: Border Around Table
HTMLHelp Forums > Web Authoring > General Web Design
AlanWade
Hi,
For whatever reason, the only way I can get a table to work on my page is like this:
CODE
[table=35]
[td]<center><img src="http://i25.tinypic.com/vgpp3t.jpg"></center>[/td]
[td]<center>[USER]honeydeal[/USER]<br>[color="blue"]From<br>
Australia<br>
Joined The Hill<br>
4/03/2008</center>[/color][/td]
[/table]

If I use the < symbol it will not display properly. What I would like to do is put a border around the table.
I have searched the web for days but cannot find any help, it all leads to using the< tag but they will not work.
Can anyone help me please?

Thanks in advance
Alan
aspmkt
I'm going to guess it's because you don't have a <tr> in there. This is the correct structure for a two row one column table with a 5px black border. <th> can be replaced with <td>, they seem to be fairly interchangeable. I'm not an html expert so I couldn't tell you the exact reasoning behind it, or why your code above works. I'm going to take another guess that the browser is just ignoring all the table references you have and dropping your image and text in wherever it likes.

<table width="100%" border="5px" bordercolor="#000000">
<tr>
<th scope="col">&nbsp;</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
</tr>
</table>
Darin McGrew
What is happening on the server to convert the square-bracket markup into HTML? This looks like something similar to BBCode, which isn't HTML at all. You may be limited to what your square-bracket markup system allows.
AlanWade
Thanks for the reply but like I said the page will not accept a table that starts with < code. It only seems to work using the [ style tags.
Darin McGrew
Then you need to figure out what "the page" will accept. This isn't about HTML. This is about whatever the program running on the server will accept.
pandy
So what is it? A message board like this one?
AlanWade
It is the first page which leads to a forum but as far as I knew it was html.
pandy
The output is always HTML. If you view source here, all you see is HTML. You cant see the program behind it.

If it is normal BBCode, I've never seen a way to add table borders. Does this forum have a help page maybe?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.