Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

borders on rows 1

Status
Not open for further replies.

tnsbuff

Technical User
Jan 23, 2002
216
US
Is there a way to set the borders for a particular table in your style sheet so that they're the same? In other words, I'd like to have a 1px. border around the outside of the table as well as dividing the rows and cells. (Like what you get when you set the border with html instead of css.)What I get now by using the class within the table tag is just a border around the outside of the table, no cells.

I know I can do it by creating a class and entering the class within each cell, but it seems like there should be a better way.

Also, what does the border-collapse property do?

Thanks very much,

 
Try this:

td{
border:1px solid black;
}

Rick
 
Thanks, but won't that affect all of my layout tables? I just want it to affect one table.
 
.classname_of_table td{
border:1px solid black;
}

Rick
 
Thanks RISTMO!

That did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top