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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table border/td border

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
I'm want to make a table border by changing only the style for table which will give me both the interior and exterior borders. I need to do this with style sheets and not with traditional html (<table border="1" bordercolor="blue" ...) method.

Code:
border-color: blue;
border-style: solid;
border-collapse: separate;

Is it possible to get the border around each cell using CSS without changing the style for td?

MrsBean
 
I'm not sure I understand.

You want to add a border to the TD, but without actually having a style definition for it?

Can you maybe explain a bit more what you want?

Would having the table's style definition alter the Td's at the same time work for you?

Something like this:

Code:
.mytableclass , .mytableclass td{
border: ....
}

This would alter anything with a class of mytableclass as well as any TD inside it. TD's not inside an element with a class of mytableclass, will not be affected.





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top