Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1428
  • Last Modified:

Table Internal borders with CSS

Hello I want to show the internal borders in a HTML table with CSS but now what I'm getting is just around border. Also I need to do this in the same style class because I don't want to set in each td and I have many tables.
table.new {
border:1px solid;
}

Open in new window

0
javaexperto
Asked:
javaexperto
  • 2
  • 2
1 Solution
 
David S.Commented:
Add this rule:

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

Open in new window

0
 
javaexpertoAuthor Commented:
Hello Kravimir what i'm getting with your code is the upper image in my attached file and I want the other.
table.gif
0
 
David S.Commented:
Change

table.new {
border:1px solid;
}

to

table.new {
  border:1px solid;
  border-collapse: collapse;
}
0
 
javaexpertoAuthor Commented:
If change as you tell i get the initial problem instead I try this and i got the solution:
table.new {
 border:1px solid;
 border-collapse: collapse;
}, table.new td { border:1px solid;
 border-collapse: collapse;}

Anyway you help me to find the solution thank you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now