Gcobani Mkontwana

Gcobani Mkontwana

  • 567
  • 1.9k
  • 402.9k

why does table overlap its body on container?

Mar 1 2024 9:07 AM

Hi Team

I have a container that has a table body and header, but i notice its overlapping the columns. Meaning where there are columns for EmailAddress etc its gets pushed to the right, i want those names to fit well to their columns so it can look nice to a user. 

<div class="modal fade" id="checkDetailsModal" tabindex="-1" role="dialog" aria-labelledby="checkNamesModalLabel" aria-hidden="true">
ss="modal-dialog modal-xl" role="document">
 class="modal-content">
<div class="modal-header">
    <h5 class="modal-title" id="checkDetailsModalLabel">Select People and Groups</h5>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
</div>
<div class="modal-body">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6 border-right">
                <!-- Left Border: Search -->
                <div class="d-flex justify-content-between align-items-center mb-3">
                    <div class="input-group">
                        <input type="text" id="searchInput" class="form-control" placeholder="Search">
                        <div class="input-group-append">
                            <button class="btn btn-outline-secondary" type="button">
                                <i class="fas fa-search"></i>
                            </button>
                        </div>
                    </div>
                </div>
                <div class="border p-3 mb-3">
                    <!-- Dropdown List or Other Content Here -->
                </div>
            </div>
            <div class="col-md-6">
                <!-- Right Border: Table -->
                <div class="d-flex justify-content-between align-items-center mb-3">
                    <h5 class="mb-0">Details</h5>
                </div>
                <div class="border p-3 table-container">
                    <!-- Table with Display Name, E-mail Address, Title, Department, Presence, Work Phone, Location -->
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>Display Name</th>
                                <th>E-mail Address</th>
                                <th>Title</th>
                                <th>Department</th>
                                <th>Presence</th>
                                <th>Work Phone</th>
                                <th>Location</th>
                            </tr>
                        </thead>
                        <tbody>
                            <!-- Table Body Content Here -->
                            <tr>
                                <td>John Doe</td>
                                <td>[email protected]</td>
                                <td>Manager</td>
                                <td>Marketing</td>
                                <td>Available</td>
                                <td>123-456-7890</td>
                                <td>New York</td>
                            </tr>
                            <!-- Add more rows as needed -->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

 


Answers (2)