MyBB Community Forums

Full Version: html code in forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ive enabled html in one of my forums so as i can post a table in here each month. Problem is when i post the code a large gap appears at the top of post. The code ive tried to use is
<html>
<body>
<table border="1" width="100%" id="table1">
	<tr>
		<td>test</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>test</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>test</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>
</body>
</html>
I have tried this with and without the body and html tags
first off, this should have been in bug forum. Wink

secondly, I get the same. Not only that, it distroys the part below it if not in a code tag, eg:

Posted here cause I wasnt sure if it was a bug or not. Thought I might be missing something therefore asking for support.

Apologies anyhow.
I ahve noticed that if you layout the HTML code in the way Leons done myBB adds the <br /> tags to the end of the html even though the HTML table layout cannot be visible as it is HTML. So to stop gettingh that big gap you'll havr to layout the HTML like this:
<table border="1"><tr><td>hello</td><td>world</td></tr><tr><td colspan="2">hello world</td></tr></table>
and the result is attached below:
Thanks wildteen greatly appreciated.
this should still be looked at and fixed IMO :/