Have you had the last <TD>, that contains last post info, a fixed width?
(2015-02-23, 01:18 AM)ThemeFreaknet Wrote: [ -> ]Have you had the last <TD>, that contains last post info, a fixed width?
Unsure, I dont thhink so...
which theme you are using and can we have your forum url
Im using my own custom theme im developing that I may give away or sell.
http://crime.pw
as already suggested, in general we use fixed widths for the table cells
eg. code segment from
forumbit_depth1_cat template
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
(2015-02-23, 02:04 AM).m. Wrote: [ -> ]as already suggested, in general we use fixed widths for the table cells
eg. code segment from forumbit_depth1_cat template
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
I understand, I removed that on purpose, It makes my theme look crap. If you go to my site you can see I removed it on purpose as in the actual table cells you can see I have it say threads posts etc after the amount that has been gotten from the variables. I just need these to lignup properly,
I tried doing display: none on the starting tr tag, It hides it but doesnt retain its width etc leaving it pointless having the code in as having the code in with display none is basically exactly the same as not even having the code in it.
So i tried visibility: hidden but as expected it retained everything its position etc but because of this its acting as extra padding but it did fix its positions, I will try changing its CSS to make its height almost 0px to see what result I will have.
Changing its height in html style="" tags make no difference, I don't want to do changes in the CSS file as it will make changes to more than just the postbit which isn't ideal for my theme =/
Any ideas guys?
Thanks!
Stay calm, help is here.
It's ok to remove the following from
forumbit_depth1_cat. I think the forum looks better without it and we use it at themefreak. It's better to remove versus hiding it (imho).
Quote:<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
Then, this is the part you're not really paying attention to, what you need to do is go to
forumbit_depth2_forum and add a class like
last-post like below
<td class="{$bgcolor}
last-post" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
Add last-post class to global.css to have a fixed
width. Emphasis on fixed
width. Then use last-post in other template areas as needed because you will need to.
The fixed width suggestion has nothing to do with hiding or showing the row of text right below forum category.
(2015-02-23, 09:32 PM)ThemeFreaknet Wrote: [ -> ]Stay calm, help is here.
It's ok to remove the following from forumbit_depth1_cat. I think the forum looks better without it and we use it at themefreak. It's better to remove versus hiding it (imho).
Quote:<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
Then, this is the part you're not really paying attention to, what you need to do is go to forumbit_depth2_forum and add a class like last-post like below
<td class="{$bgcolor} last-post" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
Add last-post class to global.css to have a fixed width. Emphasis on fixed width. Then use last-post in other template areas as needed because you will need to.
The fixed width suggestion has nothing to do with hiding or showing the row of text right below forum category.
I see you should use a fixed width but wouldn't it make it look really bad on phones ?