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