09-20-2014, 02:13 PM | #1 |
Banned
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Non rectangular shapes
Hi,
i read in the codesnippets https://www.mobileread.com/forums/sho...10&postcount=5 how to float text around a non rectangular shape. So i just sliced the shape into 6 parts and stacked them to the right using float. Everything looks fine - in Sigil, but not in ADE. Even reading the following posts dealing with that i was not able to achieve this floating. In Ade the most right slice is ok, but the following do all have a top margin where i dont know where it comes from. Has someone an idea on how to achieve that? I've attached an epub with my trials in section 1. //rubeus |
09-21-2014, 01:08 PM | #2 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=213715 and https://www.mobileread.com/forums/sho...60#post2821660 There you'll be able to see my aproximations to solve your issue. Regards Rubén |
|
Advert | |
|
09-22-2014, 02:00 PM | #3 |
Banned
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Hi, thanks for showing more postings, but at least i'm too dumb to ust mirror the L from the left side to the right side. Can some enlighten me, please?
First section in the appendix is the original solution, second my try. |
09-22-2014, 04:15 PM | #4 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1. In your .css stylesheet use: Code:
p { text-align: justify; margin: 0; } .Box1 { float: right; width: 90px; /* width of the vertical part of the "L" + 10px for right margin */ height: 300px; /* height of the image */ } .Box2 { float: right; width: 120px; /* width of the horizontal part of the "L" */ height: 100px; /* height of the horizontal part of the "L" */ } img.ToRight { /* this class is to align the image toward the right side */ margin: 0; text-indent: 0; padding: 0; float: right; } Code:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Sed at velit nisl.</p> <div class="Box1"><img class="ToRight" alt="" height="300" src="../Images/UpsideL.png" width="200" /></div> <div class="Box2"></div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus.</p> I also attach the respective .epub Regards Rubén Last edited by RbnJrg; 09-23-2014 at 08:39 PM. |
|
09-23-2014, 02:11 PM | #5 |
Banned
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Thx that solved my problem
|
Advert | |
|
01-17-2016, 12:44 PM | #6 |
Banned
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Hi,
i need to dig this out again. I've problems with the normal L lefthanded and righthanded. The upside dow versions are ok. I tried a lot of things with slicing and negative margins, and i achieved some solutions. But none of them are working in ADE 2.0. I know the examples in the epub snippets sticky thread, but im unable to make them work in ADE 2.0 or based on RMSDK readers, Can somebody help me? //rubeus |
01-17-2016, 03:50 PM | #7 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
01-17-2016, 04:02 PM | #8 |
Banned
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text wrap around irregular shapes | Doitsu | ePub | 18 | 05-05-2014 07:41 PM |
PRS-300 Screen stuck with strange shapes | Kryzn | Sony Reader | 5 | 09-08-2011 07:12 AM |
DOC to EPUB: Shapes > Line Tool | witch_wyzwurd | ePub | 3 | 11-28-2010 09:26 AM |
capturing text overlaid/within non-rectangular images | CharlesinCharge | ePub | 2 | 10-27-2010 04:53 AM |
Mystery and Crime Mann, Jack: Grey Shapes, v1, 20 March 2008. | Dr. Drib | BBeB/LRF Books | 0 | 03-20-2008 05:12 PM |