Proper alignment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hackzone
    New Member
    • Oct 2004
    • 14
    • 3.8.x

    Proper alignment

    How can I properly align the username and date in the Last Post column of Forumhome?

    Can someone help me fix this?
    Attached Files
  • Hackzone
    New Member
    • Oct 2004
    • 14
    • 3.8.x

    #2
    By the way, this only happens in FireFox..

    It is properly aligned in IE6.

    Comment

    • Hackzone
      New Member
      • Oct 2004
      • 14
      • 3.8.x

      #3
      Anyone?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        IE 6 uses a float. See the forumhome_lastpostby template:

        Code:
        <if condition="$show['lastpostinfo']">
        <div class="smallfont" align="$stylevar[left]">
        	<div style="clear:both">
        		<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
        		<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
        	</div>
        	<div[color=red]<if condition="is_browser('ie', 6)">[/color] style="float:$stylevar[left]"[color=red]</if>[/color]>
        		<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
        	</div>
        	<div align="$stylevar[right]">
        		$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
        		<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
        	</div>
        </div>
        <else />
        <div class="smallfont" align="$stylevar[right]">
        	$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
        	<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
        </div>
        </if>
        Try removing the red code highlighted above to add the float to all browsers. I assume the condition is there to fix compatibility issues in some browsers, so you might run into problems, but it seems to work fine in FF.

        Comment

        • Hackzone
          New Member
          • Oct 2004
          • 14
          • 3.8.x

          #5
          Thanks, works!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...