The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What have I done wrong?
I am trying to get something on the same line, one command on the left and the other on the right.
This is the code I am using: Code:
<tr> <td height="25" colspan="2" class="sub"> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr align="center"> We have a total of 0 users, 0 of which are online.<if condition="$show['member']"><div align=right><font color="white"><b>Logged In As:</b></font><font color="yellow"> $bbuserinfo[username]</font> </if> </div> </tr> </table></td> See screenshot for how it looks now |
#2
|
|||
|
|||
Try this:
Code:
<tr> <td height="25" colspan="2" class="sub"> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr> <td> <div style="float: left;"> We have a total of 0 users, 0 of which are online. </div> <if condition="$show['member']"> <div style="float: right;"> <font color="white"><b>Logged In As:</b></font> <font color="yellow"> $bbuserinfo[username]</font> </div> </if> </td> </tr> </table> </td> </tr> |
#3
|
||||
|
||||
Thats some awfully ugly code, but try changing the div to a span and closing it...
|
#4
|
|||
|
|||
Thanks
Worked a treat. How would you clear the code to make it look a bit tidier? |
#5
|
|||
|
|||
Using tabs usually helps. Tabs don't work in the vB editor windows though, so you'd have to do that in whatever HTML editor you use (if you don't have one, try metapad or similar software)
|
#6
|
||||
|
||||
Rather than using <font> use (as an example):
Code:
<span style="color:#ffffff;font-weight:bold">Logged In As:</span> <span style="color:yellow">$bbuserinfo[username]</span> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|