Changing the layout help
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Changing the layout help
Hey guys, I'm willing to make some changes to the forums layout to make it looks like the picture bellow:
[Image: 45362673.png]

I'm unable to make it align the right way all I got is all the forums on the left/right/center side or like the screen bellow:
[Image: 87737651.png]

Here is the code I have for forumbit_depth2_forum:

HTML Code
1
2
3
4
5
6
7
8
9
10
<tr>
<td class="{$bgcolor}" valign="center" align="left" style="white-space: norwap" width="10px"></td>
<td class="{$bgcolor}" style="width: 330px;">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" style="margin-left: 3px; margin-top: 1px;" />
{$forum_viewers_text}
<div class="smalltext">{$forum['description']}</div>
We have a total of <strong>{$posts}</strong> posts and <strong>{$threads}</strong> threads in this forum.
</td>
</tr>


Here is the code I have for forumbit_depth1_cat:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<br />


Thank you for your help.


[Image: 468x602b.png]
(This post was last modified: 01-29-2011 02:33 AM by Skiilz.)
01-29-2011 02:32 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Changing the layout help
I think you need to use float there.

01-29-2011 07:24 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Changing the layout help
[Image: semttulodz.png]

Code used forumbit_depth2_forum:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
<tr>
<td class="{$bgcolor}" style="float: left;" width="33%">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" style="margin-left: 3px; margin-top: 1px;" />
{$forum_viewers_text}
<div class="smalltext">{$forum['description']}</div>
<if $forum['linkto'] == '' then>
We have a total of <strong>{$posts}<span style="color: red;">{$unapproved['unapproved_posts']}</span></strong> posts and <strong>{$threads}<span style="color: red;">{$unapproved['unapproved_threads']}</span></strong> threads in this forum.
<else>
<b>Redirected Users:</b> {$forum['linktohits']}
</if>
</td>
</tr>


[Image: 468x602b.png]
01-29-2011 10:34 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Changing the layout help
Try to use the float inside the div. Wrap the template with the div.
Maybe you need to modify your forumbit_depth1_cat too.

01-30-2011 03:10 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: