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

  • Home
  • SEARCH
  • 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 7782285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:29:39+00:00 2026-06-01T19:29:39+00:00

I have a divider containing x tables in the form: <div class=container> <table>….</table> <table>….</table>

  • 0

I have a divider containing x tables in the form:

<div class="container">
  <table>....</table>
  <table>....</table>
  <table>....</table>
  <table>....</table>
</div>

The CSS code that corresponds to this is:

.container{
  width: 100%;
  clear: both;
  border-bottom: solid 2px #036;
  white-space: nowrap;
}

table{
  display: inline-table;
  border-bottom: solid 1px #000;
}

However, when this is applied, there is a gap of ~12px from the bottom border of the table and the bottom border of the divider. If I set “margin-bottom: -12px;” on the table it corrects the positioning error, but not in all browsers.

Does anyone know why there is a margin being made?

  • 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-01T19:29:40+00:00Added an answer on June 1, 2026 at 7:29 pm

    There seems to be a problem with display: inline-table, when you replace this with float: left the problem is gone. I have also set overflow: hidden on the .container div, so it takes the full height of the floating tables inside.

    EDIT: In order to prevent the tables from wrapping, you could place the tables inside another left floating div that has white-space: nowrap; set.

    CSS

    * {
      margin: 0;
      padding: 0;  
    }
    .container {
      overflow: hidden;
      border-bottom: solid 2px #036;
    }
    .nowrap {
      float: left;
      overflow: hidden;
      white-space: nowrap;
    }
    table {
      float: left;
      border-bottom: solid 1px #000;
      border-spacing: 0px;
      padding: 0px;
    }
    

    ​
    HTML

    <div class="container">
      <div class="nowrap">
        <table><tbody><tr><td>test test test test test</td></tr></tbody></table>
        <table><tbody><tr><td>test test test test test</td></tr></tbody></table>
        <table><tbody><tr><td>test test test test test</td></tr></tbody></table>
        <table><tbody><tr><td>test test test test test</td></tr></tbody></table>
      </div>
    </div>
    Test<br />​
    

    See this updated JSFiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have HTML code: <ul class=breadcrumb> <li><a href=#>Home</a> <span class=divider>/</span></li> <li><a href=#>Library</a> <span class=divider>/</span></li>
I have a database table containing the news on my site. It's divided into
I have a table now containing over 43 million records. To execute SELECT ,
jQuery Mobile Docs says if we wrap form element in div containing data-role=fieldcontain proper
I have a divider that is centered in the page using margin:auto . Inside
I have a dropdown menu in my layout/applications.html.erb done with twitter bootstrap <li class=divider-vertical></li>
I have a shape with a gradient that I'm using as a divider between
I have a LinearLayout view that I am trying to add a divider to
I have a menu structure as follows: <li><a href=# class=navCars>Cars</a><img src=images/navbar-menu-divider.png class=divider></li> <li><a href=#
as you can see in the following image, i have a simple form that

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.