Web Analytics Made Easy -
StatCounter Alignment - CodingForum

Announcement

Collapse
No announcement yet.

Alignment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resolved Alignment

    I am trying to make an alignment for a profile page. The image attached shows how the 5 tables would look. I have 4 of them working, but don't know how to add the 5th one which is where it says Ban/Alliance Info.


    PHP Code:
    $page .= "<center><h3><font color=white>Player Profile for ".$profile['name']."</font></h3></center><p>";

            
            
    $page .= "<table class='ex1' border='1' width='100%'>";
            
    $page .= "<tr><td width='50%'><b>Player Name:</b> ".$user['name']."<br />
            <b>Player ID:</b> "
    .$user['id']."<br />
            <b>Player Class:</b> 
    $cclass</td>";

            
    $page .= "<td width='50%' ><a href=\"images/profiles/testimage.jpg\" rel=\"lightbox\" title=\"Test\"><img src=\"images/profiles/testimage2.jpg\"></a> <a href=\"images/profiles/testimage3.jpg\" rel=\"lightbox\" title=\"Test\"><img src=\"images/profiles/testimage4.jpg\"></a></td></tr>";
            
    $page .= '</table>';
            
            
    $page .= "<table class='ex1' border='1' width='100%'>";
            
    $page .= "<tr><td width='50%'><b>AIM:</b> ".$user['aim']."</td>";

            
    $page .= "<td width='50%'>Comments</td></tr>";
            
    $page .= '</table>'
    Attached Files
    Last edited by myfayt; Sep 1, 2011, 12:38 PM.
    Been a sign maker for 8 years. My business:
    American Made Signs

  • #2
    While the code may be in PHP, the part you need help with is HTML. I've moved your topic to the HTML/CSS forum in the hope you'll find more help here.
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.

    Comment


    • #3
      I hope so, sorry about the mistake.
      Been a sign maker for 8 years. My business:
      American Made Signs

      Comment


      • #4
        Still looking for help
        Been a sign maker for 8 years. My business:
        American Made Signs

        Comment


        • #5
          This could be accomplished by using rowspan. The code below is a very basic breakdown of the table structure you need:

          Code:
          <table width="100%" border="1">
            <tr>
              <td>User Info</td>
              <td>Lightbox Pictures/Character Pic</td>
            </tr>
            <tr>
              <td rowspan="2">User Bio</td>
              <td>User Comments</td>
            </tr>
            <tr>
              <td>Ban/Alliance Info</td>
            </tr>
          </table>
          WordPress Designer and theme developer. KlongDesigns - helping bloggers and non-technical folks claim their space on the internet.

          Comment


          • #6
            That doesn't give me the two 50% tables stacked, which is User Comments and Ban/Alliance Info
            Been a sign maker for 8 years. My business:
            American Made Signs

            Comment


            • #7
              Ummmm..did you try it? The code I gave you makes the user bio be the length of two rows, then the other two rows fill in, just like you requested.
              WordPress Designer and theme developer. KlongDesigns - helping bloggers and non-technical folks claim their space on the internet.

              Comment


              • #8
                Sorry man I missed a part and had something backwards. Now it's working, time to dress it up pretty. Thanks
                Been a sign maker for 8 years. My business:
                American Made Signs

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎