Runescape Bits & Bytes
https://www.rsbandb.com/forums/

Tables problem
https://www.rsbandb.com/forums/viewtopic.php?f=27&t=61522
Page 1 of 1

Author:  Southrend [ December 30th, 2007, 1:25 am ]
Post subject:  Tables problem

Tables aren't really user friendly anymore

Code:
Result:
[table]
[tr][td]cell 1[/td][td]cell 2[/td][/tr]
[tr][td]cell 3[/td][td]cell 4[/td][/tr]
[tr][td]cell 5[/td][td]cell 6[/td][/tr]
[tr][td]cell 7[/td][td]cell 8[/td][/tr]
[tr][td]cell 9[/td][td]cell 10[/td][/tr]
[tr][td]cell 11[/td][td]cell 12[/td][/tr]
[tr][td]cell 13[/td][td]cell 14[/td][/tr]
[/table]


Result:
cell 1cell 2
cell 3cell 4
cell 5cell 6
cell 7cell 8
cell 9cell 10
cell 11cell 12
cell 13cell 14

Notice the empty space between the table and result?



However this can be solved by writing down the table on a single line.
Code:
Result:
[table][tr][td]cell 1[/td][td]cell 2[/td][/tr][tr][td]cell 3[/td][td]cell 4[/td][/tr][tr][td]cell 5[/td][td]cell 6[/td][/tr][tr][td]cell 7[/td][td]cell 8[/td][/tr][tr][td]cell 9[/td][td]cell 10[/td][/tr][tr][td]cell 11[/td][td]cell 12[/td][/tr][tr][td]cell 13[/td][td]cell 14[/td][/tr][/table]


Result:
cell 1cell 2
cell 3cell 4
cell 5cell 6
cell 7cell 8
cell 9cell 10
cell 11cell 12
cell 13cell 14




The first code is much more easier to edit/read. However the result is bad.

Author:  Adbot [ December 30th, 2007, 1:25 am ]
Post subject:  Register and login to get these in-post ads to disappear


Author:  Zac [ December 30th, 2007, 8:56 am ]
Post subject:  Re: Tables problem

I don't know if its just you or what because they both look exactly the same to me.

Author:  Southrend [ December 30th, 2007, 9:39 am ]
Post subject:  Re: Tables problem

That's weird. I got this in both Firefox and IE7

http://img120.imageshack.us/img120/999/tableoq8.png

Author:  Ben [ December 30th, 2007, 9:43 am ]
Post subject:  Re: Tables problem

The solution would be disabling the nl2br php function within a [table] tag. I don't know how you would do it, though.

Author:  Mike [ December 30th, 2007, 2:20 pm ]
Post subject:  Re: Tables problem

Custom bbcode tags are useless for tables I guess. I'll have to code them directly in like I did on the last forums I guess, or add an option to ignore line breaks or something..

I'll add this to my list of things to do for the forums. It grows faster than it shrinks :oops:

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/