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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:59:40+00:00 2026-05-29T06:59:40+00:00

If you make a normal table with 100% width and give the cells some

  • 0

If you make a normal table with 100% width and give the cells some borders the borders will of course go around all edges of all cells. But what if you want tables where the cells are shaded but the borders are “clear” (the same colour as the containing element of the table). In this case you probably want borders to appear on the internal edges of table cells but not on the outside edges.

If there is room on the right and left you can make the table have negative margins equal to the width of the cell borders. That will make the left side flush but at 100% width the right side won’t reach fully to the right. If you have 3px borders in this setup then the right side will be 6px short.

You can deal with this if you are using absolute widths for your tables but what if you need to use a % width?

  • 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-29T06:59:41+00:00Added an answer on May 29, 2026 at 6:59 am

    A CSS way to do only internal borders of a table that uses CSS selectors that should be available in IE7:

    table > tbody > tr > td {
      border-left: medium solid orange;
      border-top: medium solid orange; }
      table > tbody > tr > td:first-child {
        border-left: none; }
    table > tbody > tr:first-child > td {
      border-top: none; }
    
    table {
      border-spacing: 0; }
    

    (Wonky indentation courtesy of Sass.)

    Obligatory jsFiddle link: http://jsfiddle.net/inerdial/KzdUV/2/

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

Sidebar

Related Questions

In the normal case I use vim's make utility I will set makeprg to
I'm new in smarty!I have a loop to print a table!but it's make synatc
I read in some forums that to make an html table look disabled is
Is the normal way to do this to just make 2 cols in my
can I make my own headers in HTTP request ? e.g. This is normal
make is not only useful for building your programming project, but it seems to
I am trying to make a table inside a table so I can organize
I have the following code: <div class=rep_tb0 style=width: 100%> <div class=rep_tr0 style=width: 100%> <div
I'm trying to make tables inside tables in WORD. of course in finall program
I have a table that's generated by a normal PHP loop. What I want

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.