Jump to content

Controlling <td> attributes with css and ssi


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...