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">
<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>
<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>
                <div class="border p-3 mb-3">
                    <!-- Dropdown List or Other Content Here -->
            <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 class="border p-3 table-container">
                    <!-- Table with Display Name, E-mail Address, Title, Department, Presence, Work Phone, Location -->
                    <table class="table table-bordered">
                                <th>Display Name</th>
                                <th>E-mail Address</th>
                                <th>Work Phone</th>
                            <!-- Table Body Content Here -->
                                <td>John Doe</td>
                                <td>[email protected]</td>
                                <td>New York</td>
                            <!-- Add more rows as needed -->


Answers (2)