Post by • Ambrose • on Mar 3, 2019 8:45:26 GMT -8
Forum URL: leestests.boards.net
I'm trying to place the Activity column as such;
Threads | Posts
Last Post By
I'm trying to keep their widths equal so that one doesn't span past the other. I thought using inline-block would help but I must have placed it wrong... so I used float:left, and now the upper width's spanning a little. I also don't want them touching, so I'm not sure what to do about that.
{foreach $[board]}
{if !$[board.is_redirect]}
<tr id="$[board.content_id]" class="$[board.content_class]">
<!-- <td class="icon">$[board.icon]</td> -->
<td class="main clickable">
<span class="link">$[board]</span>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}<br />
<p class="description">$[board.description]</p>
<!-- {if $[board.num_mods]}
<p class="moderators">
Moderator{if $[board.num_mods] != 1}s{/if}:
{foreach $[board.moderator_group]}$[board.moderator_group.comma_before] $[board.moderator_group]{/foreach}{if $[board.moderator]}{if $[board.moderator_group]}, {/if}{/if}
{foreach $[board.moderator]}$[board.moderator]$[board.moderator.comma] {/foreach}
</p>
{/if}
{if $[board.sub_board]}
<p class="sub-boards">
Sub-board{if $[board.sub_board] != 1}s{/if}:
{foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach}
</p>
{/if} -->
</td>
<!-- <td class="threads"></td>
<td class="posts"></td> -->
<td class="latest last">
<div align="center" style="background-color:#000000; width:100px; height:20px; float:left; line-height:20px; padding:5px;">{if $[board.threads] == -1}N/A{else}$[board.threads]{/if} Threads</div> <div align="center" style="background-color:#000000; width:100px; height:20px; float:left; line-height:20px; padding:5px;">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if} Posts</div>
<br />
<div align="center" style="background-color:#000000; width:200px; height:50px; float:left; line-height:50px; padding:5px;">{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br />
by $[board.last_thread.last_post.created_by]<br />
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts have been made on this board.
{/if}