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 6019227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:23:25+00:00 2026-05-23T03:23:25+00:00

I have a very basic table: <table id=ttable5 class=table-default> <thead> <tr> <th>Nombre</th> <th class=sort-date>Provincia</th>

  • 0

I have a very basic table:

<table id="ttable5" class="table-default">
        <thead>
        <tr>
            <th>Nombre</th>
                <th class="sort-date">Provincia</th>
            <th class="sort-digit">Municipio</th>
        </tr>
    </thead>
    <tbody>
        <tr>

            <td class="tablaprim">1VESTIBULUM TORTOR NISL </td>
            <td>Sevilla</td>
            <td>Castilleja de la Cuesta</td>
        </tr>
        <tr>

            <td class="tablaprim">4VESTIBULUM TORTOR NISL </td>
            <td>Sevilla</td>
            <td>Castilleja de la Cuesta</td>
        </tr>
    </tbody>
</table>

I need to have this:

------------
head
------------1px border #fff
------------3px border #gray
body
------------

I can only get to show one of the borders, never two at the same time. It’s not really important but I’m curious about what is causing this issue.

My css:

thead{border-bottom: 1px solid #fff;}
tbody{border-top: 3px solid #4d4d4d;}

EDIT:

Since it seems like the border-collapse might be the issue but I can’t make it work I’ve set up this sandbox:

http://jsfiddle.net/bRVEu/

There you can see there’s only a grey border, there should be a 1px white border right on top of it

  • 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-05-23T03:23:25+00:00Added an answer on May 23, 2026 at 3:23 am

    In order for this to work, you need to

    a) use both border-collapse and border-spacing

    b) set the borders on the most interior elements of the table

    c) you must set border-collapse and border-spacing on the table so it inherits

    so

    table {
      background: pink; 
      border: 0; 
      border-collapse: separate; 
      border-spacing: 0 5px;
    }
    
    thead tr th {
      border-bottom: 1px solid red; 
      border-collapse: separate; 
      border-spacing: 5px 5px;
    } 
    
    tbody tr#first td {
      border-top: 3px solid #4d4d4d; 
      border-collapse: separate;
      border-spacing: 5px 5px;
    }
    

    I changed some of the colors to make it easier to see.

    http://jsfiddle.net/jasongennaro/Pf7My/1/

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

Sidebar

Related Questions

I'm a total Ruby/Rails/AR noob. I have a very basic sort of database schema
I'm working on a very basic shopping cart system. I have a table items
I have a very basic web crawler. The database table which stores the links
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic
I am implementing a very simple file database. I have 2 basic operations: void
I have very simple select like this: SELECT * FROM table WHERE column1 IN
I have a very basic LEFT OUTER JOIN to return all results from the
ASP.NET 2.0, SQL 2005. I have a very basic insert statement. I enter all
This seems very basic but I can't figure it out. I've got a table
I have a very basic logon system, that authenticates users by the means of

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.