Results 1 to 3 of 3

Thread: [RESOLVED] <td> align problem.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    New Orleans, LA
    Posts
    161

    Resolved [RESOLVED] <td> align problem.

    PHP Code:
    echo "<tr class='row";
    echo 
    $rowclass;
    echo 
    "' align='center' valign='middle'>";
    echo 
    "<td width='250' height='22' valign='middle' align='left'>";
    echo 
    $row['Name'];
    echo 
    "</td>";
    echo 
    "<td width='250' height='22' valign='middle' align='left'>";
    echo 
    $row['Treatment'];
    echo 
    "</td>";
    echo 
    "<td width='50' height='22' valign='middle' align='center'>";
    echo 
    $row['OnDate'];
    echo 
    "</td>";
    echo 
    "<td width='50' height='22' valign='middle' align='center'>";
    echo 
    $row['DueDate'];
    echo 
    "</td>";
    echo 
    "</tr>"
    I cannot seem to align the final two <td> cells. I can align the "Name" and "Treatment" cells any way I want, but the "OnDate" and "DueDate" will not center align no matter what. I've tried using CSS and calling the class and I've tried align="center" with no go.

    Any ideas? FYI: The table has no CSS attached to it.


    Also: Edit: It passes 100% XHTML validation through W3C and works in Firefox but not in IE. You can view the page at http://test.perpetualdesigns.net.

  2. #2
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    Re: [RESOLVED] <td> align problem.

    Hello,

    Upload all your code and let us have a look at it and we might beable to help you out with the problem.
    come back and mark your original post as resoved if your problem is fixed

    Jamie Garland

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    New Orleans, LA
    Posts
    161

    Re: [RESOLVED] <td> align problem.

    This thread was marked resolved yesterday, but thank you.

    I would post the solution but I have forgotten. I believe the problem was that some of the sizes within the table were not accurate and were prohibiting proper alignment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width