• Quick note - the problem with Youtube videos not embedding on the forum appears to have been fixed, thanks to ZiprHead. If you do still see problems let me know.

HTML help

Darat

Lackey
Staff member
Joined
Aug 3, 2001
Messages
125,833
Location
South East, UK
I'm trying to again align the signatures in posts to the bottom of the post, we achieved this last time by altering the HTML code the forum uses (Donks did the work I just cut and pasted it). Unfortunately since the upgrade that no longer works.

Could anyone help me and come up with HTML code that would produce the following:

1452e3ce8bcdac.gif
 
<td width=300 align=left valign=top>

<td width=300 align=left valign=bottom>

Pretty standard. Am I missing something?
 
<td width=300 align=left valign=top>

<td width=300 align=left valign=bottom>

Pretty standard. Am I missing something?


I think you need a height= in there so the cells don't end up 1 row high.

This worked for me in Firefox and IE:

<table border=2>
<tr>
<td width=300 height=80 valign="top">Top</td>
</tr>
<tr>
<td width=300 height=80 valign="bottom">Bottom</td>
</tr>
</table>
 
It does not work because there is some css (cascading style sheets) that vBulletin uses that overrides it. (I knot this because I once was an admin of a vBulletin fourm).

There might be some "style=" tag that would work, I will have to look into that.
 
I think you need a height= in there so the cells don't end up 1 row high.

This worked for me in Firefox and IE:

<table border=2>
<tr>
<td width=300 height=80 valign="top">Top</td>
</tr>
<tr>
<td width=300 height=80 valign="bottom">Bottom</td>
</tr>
</table>

The problem is that this table has to sit within a <TD> and that <TD> has to expand to fit the text of the post. Have a look at the source of this page around a post.

It does not work because there is some css (cascading style sheets) that vBulletin uses that overrides it. (I knot this because I once was an admin of a vBulletin fourm).

There might be some "style=" tag that would work, I will have to look into that.


Yep it would be "style=vertical-align:whatever"
 
Yep it don't work!

Do you want a specific height?

It does not work because there is some css (cascading style sheets) that vBulletin uses that overrides it. (I knot this because I once was an admin of a vBulletin fourm).

There might be some "style=" tag that would work, I will have to look into that.

Yes, that's probably it.
 
Donks has very kindly contacted me and I'm sure with his wizardry he will work it out (again!).
 
It was the addtion of (from Donks) " rowspan=2" to td class="alt2"," and "</td></tr><td class="alt1" style="vertical-align: bottom;"> " just before the signature in the template.

Have look in the source of the page it's marked as added by Donks for full details.

It was the rowspan=2 that I couldn't work out.
 
:sewhoohoo: Donks to the rescue again!

Thanks to Donks signatures are once again where they should be.

If you weren't an Admin, I would think you were trying to host your own piggy back web site here on the JREF.
 

Back
Top Bottom