TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 09:01:56 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 166
  • Total: 167
  • davo88

table within a block

Started by Racenut, September 26, 2005, 04:40:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Racenut

I am trying to insert a table with a border into a side block. It works, but I end up with the table at the bottom of the block and a large amount of space above. Here is the code i inserted into a html block:

<TABLE BORDER=1 BORDERCOLOR=BLUE>
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>


any ideas?

IchBin

I don't know why it does that. But for quick fix you can turn it into a phpbox and put it in like this:

echo '
<TABLE BORDER=1 BORDERCOLOR=BLUE>
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>
</div>';

bloc

Try to make the block "Do not use title/frame", that might help.

Racenut

Quote from: Bloc on September 26, 2005, 10:08:15 AM
Try to make the block "Do not use title/frame", that might help.

Already tried that. Didnt make a difference.

gerrymo

Have you tried using the <head> </head> <body> </body> tags (like on a full html page)?

Racenut

Yes I did. Is there some kind of align tag or something that would solve this?


Moocat

i think the valign=top attribute of the table tag might do it, but tables are my least favorite aspect of html ;D

Racenut

I tried the php box that Ichbin suggested. it worked but it shoved all the stuff in the other right side boxes to the right lol.

Can you give me an example of the code with the align tag?

Racenut

This is driving me crazy  :idiot2: :idiot2: :idiot2: Help Bloc  :knuppel2:  :buck2:

IchBin

What do you mean it shoved everything in the right side to the right. In mine it has everything left aligned.