Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9295693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:40:01+00:00 2026-06-18T21:40:01+00:00

The wrong display is shown first. Note how the rows are not in line

  • 0

wrong display

correct display

The wrong display is shown first. Note how the rows are not in line with the rest of them. When the note is longer than one line I want the message to loop around and the height of the other two tables to be equivalent so that data is displayed correctly.

I saw a javascript solution on here but it did not seem to work in my code. Though it didn’t seem different. Perhaps I just implemented it wrong. One of those would be fine as I don’t really want to make some real complex css file or anything.

Here is my unphp’d table code.

<table class="detail_status">
<tr>
    <th>Status History</th>
    <th>Outstanding Hours</th>
    <th>User Notes</th>
</tr>
<tr>
    <td>
        <form action="..." method=post>
            <select name="change_status">
                <option value="unset">Change Status</option><option value="New">New</option><option value="Remote Actions Completed">Remote Actions Completed</option><option value="On-Site Actions Completed">On-Site Actions Completed</option><option value="Company Tech Dispatched">Company Tech Dispatched</option><option value="Tech On Site">Tech On Site</option> </select>
                <input type="submit" name="change_status_button" value="Change">
        </form>
    </td>
    <td>&nbsp;</td> <!-- Yeah I know. I'm going to fix the CSS later. -->
    <td>
        <form method="post" action="...">
            <input type="submit" name="edit_notes" value="Edit Recent Note">
        </form>
    </td>
</tr>
<tr>
    <td class="status_1">
        <table class="tabInTab">
            <tr class="added"><td><b>Fixed by Contractor<b></td></tr>   <tr><td>Tech On Site</td></tr>  <tr><td>Remote Actions Completed</td></tr>  <tr><td>Company Tech Dispatched8</td></tr>  
            </table>
    </td>
    <td class="status_2">
        <table class="tabInTab">
            <tr><td>1 hrs 17 mins</td></tr> <tr><td>1 hrs 18 mins</td></tr> <tr><td>21 hrs 48 mins</td></tr>    <tr><td>21 hrs 49 mins</td></tr>
            </table>
    </td>
    <td  class="status_3">
        <table class="tabInTab">
                <tr><td>Long textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong text</td></tr><tr><td>None</td></tr><tr><td>None</td></tr><tr><td>None</td></tr>
            </table>
    </td>
</tr>

echo '<table class="detail_status">
                                <tr>
                                    <th>Status History</th>
                                    <th>Outstanding Hours</th>
                                    <th>User Notes</th>
                                </tr>';
                            if($row['resolution'] == '') {  
                        echo    '<tr>
                                    <td>
                                        <form action="'.$_SERVER['REQUEST_URI'].'" method=post>
                                            <select name="change_status">
                                                <option value="unset">Change Status</option>';
                                                $status_list = "SELECT status FROM current_status";
                                                $result_status = mysqli_query($db, $status_list);
                                                while($stat = mysqli_fetch_array($result_status)) {
                                                    $status = $stat['status'];
                                                    echo "<option value=\"$status\">$status</option>";
                                                }
                                                echo' </select>
                                                <input type="submit" name="change_status_button" value="Change">
                                        </form>
                                    </td>
                                    <td>&nbsp;</td>';
                                    if(!isset($_POST['edit_notes'])) {
                                        echo'   <td><form method="post" action="'.$_SERVER['REQUEST_URI'].'">
                                                    <input type="submit" name="edit_notes" value="Edit Recent Note">
                                                    </form>
                                                </td>';
                                    }
                                    else {
                                        echo'   <td><form method="post" action="'.$_SERVER['REQUEST_URI'].'">
                                                    <input type="submit" name="save_notes" value="Save Note">                                       
                                                </td>';
                                    }
                                echo '</tr>';
                            }                       
                        if($statusPrev1 != '' && $statusPrev2 != '' && $statusPrev3 != '') {
                            $dispCount = 3;
                        }
                        else if($statusPrev1 != '' && $statusPrev2 != '') {
                            $dispCount = 2;
                        }
                        else if($statusPrev1 != '') {
                            $dispCount = 1;
                        }
                        else { //No status set
                            $dispCount = 0;
                        }
                        echo    '<tr>
                                    <td class="status_1">
                                        <table class="tabInTab">
                                            <tr class="added"><td><b>'.$currStatus.'<b></td></tr>';
                                            for($x=1;$x<=$dispCount;$x++) {
                                                echo'   <tr><td>'.getPrevious('status', $previous, $x).'</td></tr>';
                                            }
                                echo'   </table>
                                    </td>
                                    <td class="status_2">
                                        <table class="tabInTab">
                                            <tr><td>'.calcHoursOutstanding($status_timestamp).'</td></tr>';
                                            for($x=1;$x<=$dispCount;$x++) {
                                                echo'   <tr><td>'.calcHoursOutstanding(getPrevious('time', $previous, $x)).'</td></tr>';
                                            }
                                echo    '</table>
                                    </td>
                                    <td  class="status_3">
                                        <table class="tabInTab">';
                                            if(!isset($_POST['edit_notes'])) {
                                                echo '<tr><td>'.$notes.'</td></tr>';
                                                for($x=1;$x<=$dispCount;$x++) {
                                                    echo '<tr><td>'.getPrevious('notes', $previous, $x).'</td></tr>';
                                                }
                                            }
                                            else {
                                                    if(isset($_POST['note_text'])) { //Probably Unneccesary? 
                                                        echo '<input type="textbox" name="note_text" value="'.$_POST['note_text'].'">';
                                                    }
                                                    else {
                                                        echo '<input type="textbox" name="note_text" value="'.$notes.'">';
                                                    }
                                                    //End of Save note form. Have to end it here to have the note_text be POSTed
                                                    echo '</form>';                                         
                                                //Started index at 2 to skip first one which is displayed above.    
                                                for($x=1;$x<=$dispCount;$x++) {
                                                    echo'   <tr><td>'.getPrevious('notes', $previous, $x).'</td></tr>';
                                                }
                                            }
                                echo    '</table>
                                    </td>
                                </tr>
                            </table>';
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:40:02+00:00Added an answer on June 18, 2026 at 9:40 pm

    You should not be nesting tables the way that you are. You need to make sure that each row in your table has three cells. The way you’re doing it, you are allowing individual tables to grow independently without respect to one another.

    See my on jsFiddle: http://jsfiddle.net/vzBrF/

    This is what your row should look like:

    <tr>
        <td class="status_1">Fixed by Contractor</td>
        <td>1 hrs 17 mins</td>
        <td>Long textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong tex</td>
    </tr>  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What am I doing wrong here folks? <?php include 'header.php'; /** * Display a
List<int> megalist; int boxId; boxId = ListofUniqueIDSpecificToDate.IndexOf(lstbox.SelectedIndex);<< this is wrong I'm trying to display
Whats wrong with my query? ALTER TABLE test_posts ADD sticky boolean NOT NULL default
this is my first time make a map using Fusion Tables, I want two
I'm building my first android app - something that will display my tweets in
I want to display id=text when the button is clicked. So I tried this:
What is wrong with this program? Every time I run it the first math
I want to create some UIbutton dynamically. And display the tag number. So I
I have just using the jquery hover : $.each(navItems, function(i){ $(navItems[i]).hover(function(){ $(this).find('ul:first').css({visibility: visible,display: none}).show();
I display an UITableView, and from time to time, the first row appears at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.