![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
|
Shrinking type in lists
Hi. Back with more questions about lists.
Attached is a screen grab of the split between code and design of the book I’m cleaning up in DW, and an RTF of my coding of a couple of the lists. The lists are all indented as planned, and ordered/unordered where planned, BUT as the hierarchy descends, the type gets smaller (see the LL-BL1, LL-BL2, LL-BL3 list items). Yes, there is a reason for the classes -- space above the first list item and below the last list item in the print book. I have tried controlling this by setting percentages higher than the point size of the <p> tag (the desired size for ALL of these lists), but I must be missing something, because nothing I do works. I tried setting the size the same as the <p> tag first, but that didn’t work, and that was when I resorted to either a larger em or percentage. I'm perfectly happy to recode the lists, but I'm at my wits’ end right now, and I need to move this along. Your advice will be greatly appreciated. Last edited by sgirsberger; 10-08-2011 at 07:17 PM. Reason: clarification |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I am not quite sure what you mean, but if you mean that your lists have a smaller font, than that can probably be changed quite easy.
Put the following in your stylesheet: Code:
ul,ol { font-size: 1em; } |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
|
Thanks for your advice, Toxaris, but I ended up having to spec 1.15em for the affected list styles for the time being. In future projects, I'll examine the cascades more carefully and apply more practical style sheets instead of just what I’m getting from InDesign. As I learn more, I’ll be able to use the export options intelligently.
|
![]() |
![]() |
![]() |
#4 |
Nameless Being
|
Of course the next question to ask is why one <ul></ul> pair needs <li> elements with classes LL-BL1, LL-BL2 and LL-BL3. Looks like a case of "class and DIV"itis.
|
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
|
Yes, regrettably, as a traditional book designer, I have paragraph styles within my book files that include one style for the first list item, one style for the middle list items, and one for the third list item in any given group of list items. The first list item is generally styled with space above, while the third list item is generally styled with space below. The paragraph style for the middle item(s), which has no space above/below, is routinely the style on which the other two are based, and the body text (<p>) is generally the parent style for the lot.
I do this to avoid local overrides, which would present their own unique problems when ported over to CSS, I’m sure. It’s difficult to give up old habits, shall1028, but once I get the inheritance concepts in hand, I know I will find it much easier to format across many files. Amazing how my nicely organized styles and files only do about two-thirds of the work upon export from InDesign CS5.5. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Using a CSS of ol + li {} should allow fixing the first item in the list but I don't know how you fix the last item.
Dale |
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
If you want space above the first item and below the last item, shouldn't it be equivalent to having space above and below the whole list (ol/ul)?
|
![]() |
![]() |
![]() |
Tags |
css, hierarchy, list, ordered, unordered |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lettered lists | Christopher Wood | Kindle Formats | 22 | 06-20-2011 05:33 AM |
Richard Matheson - The Incredible Shrinking Man (now $0.99 ) [SF] (Amazon US ) | NightBird | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 05-19-2011 04:28 PM |
Display File Type and Sort by Type | pragmortal | Calibre | 7 | 09-21-2009 08:07 PM |
Shrinking Amazon free book list | spiegels | Amazon Kindle | 14 | 03-04-2009 07:54 PM |