Alignment Help

Discussion in 'PHP' started by dkin69, Mar 9, 2009.

  1. #1
    I am running a script which is aligned through css, when my users log in the alignment is perfect, but if they are not logged in everything is jumbled. This is the script, can anyone see anything wrong with it which would cause the problem I described???

     <div class="square">
                <b class="top"><b class="b2t"></b><b class="b2"></b></b>
                  <div class="boxcontent">
    			  
                    <p class="leftcontent">
            {if $loggedin == "1"}
    		
    <b>Your Account</b>
                      <br /><br />
    				  <strong>Username</strong> : <a href="{$directory}player.php?user={$member.id}">{$member.username}</a>
    				  <br />
    				  <strong>HP</strong> : {$member.HP}
    				  <br />
    				  <strong>Level</strong> : {$member.level}
    				  <br />
    				  <strong>Gold</strong> : {$member.gold|number_format} 
    				  <br />
    				  <strong>Unread Messages</strong>  : <a href="{$directory}messages.php">{$memberunread}</a>
    				  
           v
            {/if}
    		</p></div><!--box content -->
                <b class="bottom"><b class="b2"></b><b class="b1b"></b></b>
              </div><!--square -->
          </div><!--left -->
    Code (markup):

     
    dkin69, Mar 9, 2009 IP
  2. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2

    Its really hard to figure out from this codes, as the problem doesnt seems to be here. If you can provide the actual link, then after looking at it, maybe it can be figure out.

    The only extra part in this code I can see is "v" which is present in the codes. Its highlighted with red color.

    Gonzo
     
    Gonzo4u, Mar 9, 2009 IP
  3. dkin69

    dkin69 Active Member

    Messages:
    643
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I placed the v there just so I knew where that code was on the page, I will now display the entire page content as well as the css.

    This is the css.

     
    dkin69, Mar 9, 2009 IP
  4. dkin69

    dkin69 Active Member

    Messages:
    643
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I figured it out, there was a problem with a <li> not having a slash.
     
    dkin69, Mar 9, 2009 IP
  5. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Glad to hear that it is solved :)

    Gonzo
     
    Gonzo4u, Mar 9, 2009 IP