Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2010
    Location
    Australia
    Posts
    93
    Thanks
    38
    Thanked 0 Times in 0 Posts

    Dynamically increase Table Colum width

    Hi,
    Am trying to increase with of a table colun using the following code, but the width remains unchanged.
    Code:
    echo "<td width='800'>" . $row['location'] . "</td>";
    Any help?

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by avizhome View Post
    Hi,
    Am trying to increase with of a table colun using the following code, but the width remains unchanged.
    Code:
    echo "<td width='800'>" . $row['location'] . "</td>";
    Any help?
    PHP Code:
    <?php
    $width 
    347;
    $suffix "px";

    echo 
    "<td width=\"$width$suffix\" height=\"10px\"> $row['location']</td>";
    ?>
    Leonard Whistler


  •  

    Posting Permissions

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