Quote:
Originally Posted by DaveLessnau
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.