Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have designed a table for which i want to apply borders(all the cells). But of less thickness.

When i use css styling:


Border is applied only to the outer side and not inside i.e to all cells(td's). This looks proper for table with single row but when i try to apply for table with multiple row doesn't work since only outer border can be seen.

please help.
Posted
Comments
saeel chary 20-Aug-13 7:15am    
Thanks everyone for reply.
Is there any method by which we can remove outer border(I have tried using border-bottom tag).

XML
<style type='text/css'>
    table, td {
        border: 1px solid black;
    }
</style>


Hope this helps.
 
Share this answer
 
v2
table, td {
border: 1px solid black;
}
 
Share this answer
 
CSS
table
{
   border: 1px solid black;
}
table td
{
   border: 1px solid black;
}


table css will be give outer border on entire table while td css will be give a border around on each cell in table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900