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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:38:46+00:00 2026-05-14T20:38:46+00:00

Why both border not showing? http://jsfiddle.net/r8mA7/ <table> <thead style=border-top:10px solid red; background:yellow> <tr><th style=border-top:10px

  • 0

Why both border not showing?

http://jsfiddle.net/r8mA7/

<table>
<thead style="border-top:10px solid red; background:yellow">
    <tr><th style="border-top:10px solid green">Name</th></tr>
</thead>
<tbody>
    <tr><td>Bob</td></tr>
    <tr><td>Tom</td></tr>
</tbody>
</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-05-14T20:38:46+00:00Added an answer on May 14, 2026 at 8:38 pm

    It’s the expected behaviour. Odd, but expected.
    The borders are collapsing, and the thicker one prevails.

    You can see it with this example: the touching borders on first row collapse, the ones on the second row don’t.
    On the first row the first cell gets the thicker border (10px green > 5px red), and the second cell gets the thicker border (5px red > 3px green).
    On the second row there are no “adjoining” borders to collapse, so the 10px green and 3px green borders show up normally.

    <table>
    <thead style="border-top:5px solid red; background:yellow">
      <tr>
        <th style="border-top:10px solid green">Name</th>
        <th style="border-top:3px solid green">Name</th>
      </tr>
      <tr>
        <th style="border-top:10px solid green">Name</th>
        <th style="border-top:3px solid green">Name</th>
      </tr>
    </thead>
    </table>
    

    Need me to clear up the explanation anyhow?

    PS: theoretically you could use the border-collapse property on the table to prevent that, but I’m not managing.
    Also, the default value seems to be not to collapse.

    Further reading: http://www.w3.org/TR/CSS2/tables.html#borders

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

Sidebar

Related Questions

http://jsfiddle.net/jasondavis/Mt87G/1/ I am trying to do an un-ordered list, each list item will have
I have two divs one inside another. I have given some border to both
Both methods MyBehavior::CreateSerializer() are not called of some reason, but ReplaceBehavior() method is working.
I currently have two divs on my site: Notice that both have border [same
so I have this site: http://webzilla-il.com/contactus.php , now i know it's not in english
I want to add a border radius around the entire table. But the following
CSS border radius is not applied on navigation wrapper. Any ideas why? Fiddle Code:
In my test, I have 2 spans both set to display:inline-block with a border
I've tried various editors, both desktop applications and web-based RTEs, but have not found
border: 1px solid rgba(0, 0, 0, 0.5); background: rgba(255, 255, 255, 0.3); Aptana 3.0.6

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.