stopping inheritance of borders for TDs

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Currently, skinning (if you can call it that, I think I'm more taking out/stripping it. Anyway...) there is a class "forumline" with the following CSS:

.forumline {
  background-color: #ffffff;
  border-top:1px #006699 solid;
  border-left:1px #006699 solid;
  color:#000000;
}
.forumline td{
  border-bottom:1px #006699 solid;
  border-right:1px #006699 solid;
  padding:2px 5px 2px 5px;
}
'

As with most (if not all) forums, there are countless tables (which makes it a pain to edit) nested inside other tables nested inside other tables nest....

Well, how do I stop the nested tables from inheriting the borders? It makes everything look very weird and wrong.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

.forumline td{
  border: 0;
  padding:2px 5px 2px 5px;
}
'

Either that or just remove it.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

No, the problem is that the nested tables are getting the borders too. I want the original TDs to have borders but not the nested tables.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Same thing then!

.forumline td table td{
  border: 0;
}
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.