The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Fixed width last post table cell
I am unable to assign a fixed width to the table cells that contain the last post info.
I've already tried to give both the table cell (td) in the first row and all other rows a certain css attribute ("style='width:200px'"). When the page is loaded, those cells collapse to the width that is determined by their text content. How do I expand those cells so that they all have the same width? |
#2
|
||||
|
||||
Just modify the header row to have a static width. Also, try using just the width attribute (i.e. not using a style attribute with CSS).
|
#3
|
|||
|
|||
I have a fairly good understanding of html. I've tried doing what you said (mentioned it in the original post already), but it did not work.
So I guess I must be overlooking something. Here is the template contents that control the width of the header row: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr align="center"> <td class="thead" width="100%" align="$stylevar[left]"> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <if condition="$show['forumdescription']"><span class="smallfont">- $forum[description]</span></if> </td> <td class="thead" width="175">$vbphrase[last_post]</td> <td class="thead">$vbphrase[posts]</td> <if condition="$vboptions['showmoderatorcolumn']"> <td class="thead">$vbphrase[moderator]</td> </if> </tr> </thead> The only reason that I can think of is the width of 100% in the preceding table cell? |
#4
|
||||
|
||||
Check vboptions > forum display > last thread title max chars and set that smaller. If you have it too long, it will push that table cell width out no matter what you have it set to.
|
#5
|
|||
|
|||
But table cells that are smaller than the 175 px are not expanded!
|
#6
|
||||
|
||||
They are in that particular table. You separated the tables. When you do that, what happens in one table will no effect the other table. Nothing you can do about it if you are going to keep the tables separated.
|
#7
|
|||
|
|||
I know the tables are separated.
But if I add the width to all the table cells, they should expand. Anybody know the reason why they don't do that? |
#8
|
||||
|
||||
How about a link to your page so we can see what is going on? and a test account if needed.
And if you have another table cell with a width in there, it could be conflicting with this one and that is the problem you are seeing. |
#9
|
|||
|
|||
**** link removed ****
The width of course depends on the latest post in the forum. Both the table header and the last post table cell itself have a width attribute of 220. Could it be all the "white-space:nowrap" stuff that collapses the table cell? |
#10
|
||||
|
||||
Have you tried setting it to something bigger like 250? What do you have vboptions > forum listings options > last thread title max chars
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|