vForums Support > vForums :: Support :: > Mini profile

Mini profile - Posted By Alex Bailey (system) on 24th Jul 08 at 12:18am
well i got this code so far

Code:
 
  1. <font size="2">
  2. {if:online}X{/if:online}{ifnot:online}X{/ifnot:online}
  3.      <center> {display_name} </center>     {if:gender}<img src={gender}.gif>{/if:gender}
 


It should be all on the same line but its not atm, its showing up on 3 seperate lines

Re: Mini profile - Posted By Marc (cr0w) on 24th Jul 08 at 1:08am
I'm confused as to what you're asking for support on. {Unsure}

Re: Mini profile - Posted By Michael (wrighty) on 24th Jul 08 at 2:09am
As I stated over MSN - use a table to make the whole code, that'll get the whole thing to look like the concept.

Re: Mini profile - Posted By Ross (admin) on 24th Jul 08 at 8:33am
<center> is a block level element which causes it to be on its own line. As Wrighty said, you could use a table to display that information:

Code: HTML
 
  1. <table width="100%" cellpadding="0" cellspacing="0">
  2. <tbody>
  3.     <tr>
  4.         <td>
  5.             <font size="2">{if:online}X{/if:online}{ifnot:online}X{/ifnot:online}</font>
  6.         </td>
  7.         <td align="center">
  8.             <font size="2">{display_name}</font>
  9.         </td>
  10.         <td align="right">
  11.             {if:gender}<img src="{gender}.gif">{/if:gender}
  12.         </td>
  13.     </tr>
  14. </tbody>
  15. </table>
 

Re: Mini profile - Posted By Alex Bailey (system) on 24th Jul 08 at 3:22pm
Thanks , they are on the same line now, but the display name is further on the right then the center.

Re: Mini profile - Posted By Michael (wrighty) on 24th Jul 08 at 4:58pm
That's due to the differernt sized images/text either side of it! {Unsure}

I just suggest making images/text the same width! {Smile}

Re: Mini profile - Posted By Alex Bailey (system) on 24th Jul 08 at 8:21pm
Ah thought so , thanks {Smile}