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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:30:35+00:00 2026-05-26T03:30:35+00:00

Codes as below. I’m so puzzled of this problem. table td{ padding:10px; background:#415DA1; border-top:solid

  • 0

Codes as below. I’m so puzzled of this problem.

table td{
    padding:10px;
    background:#415DA1;
    border-top:solid 10px #F00;
    border-right:solid 10px #CCC;
    border-bottom:solid 10px #F00;
    border-left:solid 10px #CCC;
}

<table>
    <tr>
        <td>Test</td>
        <td>Test</td>
    </tr>
</table>

The apperance between Firefox and Chrome has some differences, I’m not sure if it’s coused by the differences of different brwosers. Is there any way to fix it by CSS?

Example: http://jsfiddle.net/AndyE/B2fjn/

  • 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-26T03:30:36+00:00Added an answer on May 26, 2026 at 3:30 am

    This is just differing border drawing implementations. You’ll notice that there’s a difference in IE and Opera too:

    enter image description here

    I didn’t test Safari, but I’d expect it to look the same as Chrome since they use the same rendering engine.

    The only way that I can think of to get a consistent border across browsers is to set border-collapse to separate on the <table> element:

    table {
        border-collapse: separate;
    }
    

    This, unfortunately, means you have a new problem to solve — there will now be 2x 10px borders between each cell. You can work around this by altering your markup or adding extra CSS rules. For instance, I changed the CSS to the following:

    table {
        border-collapse: separate;
    }
    
    table td{
        padding:10px;
        background:#415DA1;
        border-top:solid 10px #F00;
        border-right:solid 5px #CCC;
        border-bottom:solid 10px #F00;
        border-left:solid 5px #CCC;
    }
    
    table td:first-child {
        border-left-width: 10px;
    }
    table td:last-child {
        border-right-width: 10px;
    }
    

    Demo: http://jsfiddle.net/AndyE/B2fjn/1/

    This gives as good a result as you can probably expect in modern browsers, but doesn’t look so great in IE 6-8. You’ll need to experiment until you can get the best result possible.

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

Sidebar

Related Questions

This below codes give me error below: How to generate this codes help me
Look please below this codes throw me : FormatException was unhandled by user code
I've codes below: HTML body codes: <div>asbcakjscb<div> CSS codes: div { width:400px; height:400px; background:red;
I've a question about this reserved word in JavaScript. Check out codes below: Function.prototype.method
I have a problem here if you look at my codes below after I
This is my codes below. I'm trying to use intent to call another activity
I use the codes below to read and write a bool value from my
I was wondering if the codes below are the correct way to check for
I hope to list all files in document directory using codes below for(NSString *path
For some weird reason, the codes below are first working, then website is redirecting

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.