![]() |
#1 |
Connoisseur
![]() Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
problem with bullet at end of paragraph
Hi all
We're attempting to match a print job in ePub. Obviously matching it exactly is not possible but I'm trying to carry as many design features as possible over to the ePub and one of them is at the end of the last paragraph there's a coloured bullet. No matter what I do I can't get the bullet to work in ePub - I can get it to appear, styled with a span, but I can't get it to sit on the line with the 'normal' text and not cause a gap in the paragraph (in ADE). See screenshots attached The bullet in the attached ADE screenshot is styled as; Code:
span.end-bullet { color: #C9652F; position: relative; bottom: -0.2em; font-size: 2em; line-height: 0.9em; } ![]() |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Thanks. Now we're getting somewhere - that change to the CSS means I don't have the paragraph gap any more but the bullet is sitting too high relative to the text (see screenshot attached).
To drop that onto the baseline with the normal text I added Code:
vertical-align:middle; |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I don't think there is a bullet-proof (oops, no pun intended) solution, because the size and position of the bullet is font-dependent. But you could include the bullet either as an image (even an SVG image) or as an embedded font, that way you can control the exact position with respect to the baseline...
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Okay, thanks. I'll test it on some devices. Did consider using an image for my bullets in unordered lists but didn't want to have to unzip the ePub to add it in and then have to rezip it. Currently we're doing all our tweaking in Sigil and then just resaving it.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Wow - I didn't know that. I was sure I'd tried... Thanks! Does it do all "the paperwork" behind the scenes (ie, add the filename(s) anywhere it needs to be mentioned within the ePub so it validates?
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes, Sigil does whatever is necessary for the image to be a part of the epub package (right click on the "Images" folder and select "Add Existing Items"). You will still need to add the xhtml for the image to actually appear where you want it to in the ebook, though.
|
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
That's great - it opens up the possibility of using images for bullets. Cheers!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with non-indented paragraph | Soxendom | ePub | 2 | 05-16-2011 06:30 AM |
I'm having a problem with extra paragraph spaces | akosimike | Calibre | 10 | 05-27-2010 06:53 PM |
Stop line wrapping at quotes at the end of a paragraph | sherman | ePub | 6 | 05-13-2010 02:52 PM |
LRF paragraph problem | qq67 | Calibre | 4 | 03-09-2010 06:40 AM |
EPUB: End of paragraph after letters with accent? | wildbilly | Calibre | 3 | 01-29-2010 09:15 AM |