MyBB Community Forums

Full Version: New theme layout, messed up.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2011-04-24, 07:59 PM)AJS Wrote: [ -> ]Can you get a screenshot of what you're seeing now?
Before or after removing the float tag?

There's still a float_left in there, try removing that too.
(2011-04-24, 08:05 PM)AJS Wrote: [ -> ]There's still a float_left in there, try removing that too.
I added it back thats why, here is it after I remove it.


[attachment=22430]
Add a width to the second td too, that should solve it.
Where here? forumbit_depth1_cat
Here is the current code where do I add the width?
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<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 />
Now I see the problem as well.

The problem is that each forumbit is a new table. This means that it expands on its own and doesn't take notice of the column widths of the other rows. You either need to add a width to the last column:

In 'forumbit_depth2_forum', replace:
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
with
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap" width="300">{$lastpost}</td>

Or remove the table but I think this could break the theme completely.
It worked a little but it's still a little out of proportion.
[attachment=22431]
It will stretch if the content exceeds that 300px. You can change the 300 to 500 or something but if there will be content that is wider, it will keep stretching. You could also try to shorten the date format.
(2011-04-24, 08:52 PM)Aries-Belgium Wrote: [ -> ]It will stretch if the content exceeds that 300px. You can change the 300 to 500 or something but if there will be content that is wider, it will keep stretching. You could also try to shorten the date format.
I was looking how to do that but couldnt find it, any idea where it is?
Big Grin Fixed it, changed it to 400.

(2011-04-24, 08:53 PM)blake Wrote: [ -> ]
(2011-04-24, 08:52 PM)Aries-Belgium Wrote: [ -> ]It will stretch if the content exceeds that 300px. You can change the 300 to 500 or something but if there will be content that is wider, it will keep stretching. You could also try to shorten the date format.
I was looking how to do that but couldnt find it, any idea where it is?

Globally: AdminCP > Settings > Date and time formats
For the user: UserCP > Edit Options > Date & Time > Date format
Pages: 1 2 3