View Single Post
Old 07-18-2022, 02:17 PM   #6
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DaveLessnau View Post
After playing around with the css formatting for those tables, I just set them all to the same settings. I don't know why the author/publisher made them slightly different from each other -- it really made no difference. In my stylesheet.css, I ended up with:
Code:
table#an1111, table#an2315, table#an3477, table#an3819, table#an3988, table#an3017 {
  table-layout: fixed;
  width: 100%;
  border-spacing: 5px;
  border: 1px black solid;
}
td {
  border-collapse: separate;
}
table#an1111 td, table#an3477 td, table#an3988 td, table#an2315 td, table#an3017 td, table#an3819 td {
  width: 50%;
  border: 0;
  padding: 2px;
}
And, since these were all the tables in the book, I could have gotten away without the IDs at all and just gone with changing the default table and td settings (or at least started there as Turtle91 said). But, this is fine.
Don't use ID, just define a class, apply the padding to cells and border-spacing to tables (see my previous post):

Code:
.tabspace {
  table-layout: fixed;
  width: 100%;
  border-spacing: 5px;
  border-collapse: separate;
  border: 1px black solid;
}

.tabspace td {
  width: 50%;
  border: 0;
  padding: 2px;
}
And now, where you had for example <table id="an1111"> now write <table class="tabspace">. Do the same with your others tables.
RbnJrg is offline   Reply With Quote