Jump to content

Controlling <td> attributes with css and ssi


ferren

Recommended Posts

25 book chapters, with a common nav table in ssi that sets a 1-px border for <td>. Everything works. Now I want a timeline table without borders, (or border: 0px;) below the nav table. Seems trivial; the first 75 'obvious' approaches have not worked. I get borders everywhere or nowhere. It is inelegant to write <td class="no-border"> for each entry in the borderless table (500 times). Surely there's a better way? See the 2 misbehaving tables athttp://electromontis.net/evoligion/_G/Tim.shtml#Ti and, e.g., PALEOLITHIC. The first wants borders, the second does not. What have I overlooked?

Link to comment
Share on other sites

If you have two different tables and you want them styled differently, give the <table> element a class attribute and use descendent selector to target the <td> elements within them.

<table class="table1"><table class="table2">.table1 td {  border: 1px solid black;}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...