1
dnprossi
Created a table and left blocks move to bottom of page.
  • 2006/3/15 13:29

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Hi,
I crated a theme file and added a table to it with a few columns. When table is empty and no data is displayed except for title, all works fine. When table is filled all the left blocks are forced to move to the bottom of the page... Please help...

2
Psychotic_Ca
Re: Created a table and left blocks move to bottom of page.

can you post a link to it and to the files? your probably missing a close tag somewhere
Psychotic_Carp
Resized Image

3
dnprossi
Re: Created a table and left blocks move to bottom of page.
  • 2006/3/16 10:10

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


This is the html code i am using in my theme file:

<pre>

<div class="item">
<table border="0">
<tr>
<td class="itemHead"><span class="itemTitle"><{$title}></span></td>
<{section name=i loop=$articles}>
<{foreach item=article from=$articles[i]}>
<table border="0">
<tr class=<{cycle values="odd,even"}>>
<td width="1%"><{$article.image}></td>
<td width="40%"><{$article.content}></td>
<td width="5%"><{$article.price}></td>
<td width="20%"><{$article.buy}></td>
<td></td>
</tr>
</table>
<{/foreach}>
<{/section}>
</tr>
</table>
</div>

</pre>

4
Quest
Re: Created a table and left blocks move to bottom of page.
  • 2006/3/16 12:03

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Quote:

dnprossi wrote:
This is the html code i am using in my theme file:

<pre>

<div class="item">
<table border="0">
<tr>
<td class="itemHead"><span class="itemTitle"><{$title}></span></td>
<{section name=i loop=$articles}>
<{foreach item=article from=$articles[i]}>
<table border="0">
<tr class=<{cycle values="odd,even"}>>
<td width="1%"><{$article.image}></td>
<td width="40%"><{$article.content}></td>
<td width="5%"><{$article.price}></td>
<td width="20%"><{$article.buy}></td>
<td></td>
</tr>
</table>
<{/foreach}>
<{/section}>
</tr>
</table>
</div>

</pre>


Try try adding a <td> and a closed </td> (colored below)or somewhere in that area. It appears you closed the first cell and then went right into a table with out opening another cell under the main table. I can't tell from this though exactly where you want the cell so you will have to play with it.

<pre>

<div class="item">
<table border="0">
<tr>
<td class="itemHead"><span class="itemTitle"><{$title}></span></td>
<{section name=i loop=$articles}>
<{foreach item=article from=$articles[i]}>
<td>
<table border="0">
<tr class=<{cycle values="odd,even"}>>
<td width="1%"><{$article.image}></td>
<td width="40%"><{$article.content}></td>
<td width="5%"><{$article.price}></td>
<td width="20%"><{$article.buy}></td>
<td>&nbsp;</td>
</tr>
</table>
<{/foreach}>
<{/section}>
</td>
</tr>
</table>
</div>

</pre>

5
dnprossi
Re: Created a table and left blocks move to bottom of page.
  • 2006/3/16 12:32

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Yes, I will have to play with it but i now understand the problem...
Thank you very much for your time...

Login

Who's Online

121 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 121


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits