View Single Post
Old 07-18-2022, 05:12 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DaveLessnau View Post
I'm brand new to tables in css/html.
KISS. Keep It Simple, Stupid.

All you really need is:
  • <table>
  • <th>
  • <td>
  • <thead> (Optional)
    • This allows the headings to "repeat" if page-break occurs in middle of table.
  • <tbody> (Optional)

For more info, see my posts in:

Quote:
Originally Posted by DaveLessnau View Post
And for my more basic question, how do I set up CSS classes/styles to handle the different versions?
Use the defaults, they're there for a reason.

Then, tentatively, you can add more CSS on top of that if needed.

Anyway, if you share an example image+HTML of your actual tables, we could make better judgements.

- - -

Side Note: If you want to make your tables more readable, you should also follow these basic rules:
  • Left-Align Text
  • Right-Align Numbers

If you want more info, I highly recommend reading my Posts #4, #9, and #11 in "Formatting tables best practices".

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.
Yes, good idea.

Quote:
Originally Posted by DaveLessnau View Post
If I just needed to change the defaults, I could just list those things as above. But, how do I get them into multiple, separate, non-default classes/styles?
I'd be very careful with lots of padding in your tables.

Remember, ebooks can be read on very skinny/tall screens (like cellphones) with very large fonts.

Personally, I minimize bloat as much as possible.

Stick with the defaults, with very minor adjustments here and there.

The most important thing is the proper HTML markup. That gets you 90% of the way there. This final 10% is niggling over smaller details.

Last edited by Tex2002ans; 07-19-2022 at 05:58 PM.
Tex2002ans is offline   Reply With Quote