Link to home
Start Free TrialLog in
Avatar of javaexperto
javaexpertoFlag for Mexico

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of javaexperto

ASKER

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

table.new {
border:1px solid;
}

to

table.new {
  border:1px solid;
  border-collapse: collapse;
}
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.