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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,985
  • Total Topics: 21,321
  • Online today: 1,318
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 403
  • Total: 403

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

Quote from: IchBinÃ,â,,¢ on September 27, 2005, 01:19:58 AM
What do you mean it shoved everything in the right side to the right. In mine it has everything left aligned.

I added the code you posted to a php box as a right side menu block. I have 3 other right side blocks. When i added the php box with your code, all the contents of the other right side blocks shifted in their boxes from the left to the right side of the box. it was wierd lol.


IchBin

hmm.... that didn't happen in mine with Firefox. What browser you using?


IchBin

hmmm.... Stilll didn't happen on mine with IE. Maybe put align="left" in your table and see if that helps. You could surround it with a <div align="left"> tag too and see if that helps.

Racenut

Thanks, put it where? Could you post the origional code with the added tag please?  :idiot2:

thanks :)

IchBin

It could look like this:
echo '
<div align="center">
<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>';


Or this:

echo '
<TABLE BORDER=1 BORDERCOLOR=BLUE align="center">
<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>';



Racenut

Thanks man, Ill try them  :coolsmiley:

Racenut

Ichbin,

Your code worked. However i realized i cant use it because i actually want to insert this table within an already existing html box. So the code is going to have to be html and not php. I am sure there is a way to do this, or it is a bug in TP.Either way, I give up LOL. Thanks for trying to help me.

bloc

ah, I see now..use "javascript/html" type of block, not "html"  block. That last one is going through the smiley/bbc parser, so it adds all the spaces you have as real spaces - which normally html code doesn't. And use a width="100%" in the table..so it stretch all the way out in the block.

I will change the name to "bbc" instead of "html" from now on, to distinguish better between them.

IchBin

^leave it to this guy to figure it out. You'd think it was his mod or something...:P

This website is proudly hosted on Crocweb Cloud Website Hosting.