Loading Please Wait...

Logo Lynxsia IT Solutions

CSS Table Borders

CSS Table Borders

The CSS border property can be used to style border of the table.

We can style border for <table>, <tr>, <th>, <td>, <thead>, <tbody>, and <tfoot>.

					 
        
          table, th, td {
            border: 1px solid;
          }
        
      
Double Borders Problem

When we add border for <table>, <th>, and <td>, we see that now the table have double border. This is because one border is for <table> itself and second border is for <th> and <td>.

To overcome this, we can use CSS border-collapse property. This will collapse border into one.

					 
        
          table, th, td {
            border: 1px solid;
          }

          table {
            border-collapse: collapse;
          }
        
      

How you feel about this blog:

Share this blog on:

Report Us

If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com

Contact Us
Ads
Logo
Lynxsia IT Solutions

We are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved