![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2010
Device: Kindle 3nd
|
css in epub (rounded corner)
Hi,
I am trying to create an css box with rounded corners. In the "browser" its working fine, but the Kindlepreviewer (Windows version running with wine) is not showing it correctly. Is it may be not supported? css: Code:
body { background-color: #E0E0E0; } /* set millions of background images */ .rbroundbox { background: url(images/nt.gif) repeat; } .rbtop div { background: url(images/tl.gif) no-repeat top left; } .rbtop { background: url(images/tr.gif) no-repeat top right; } .rbbot div { background: url(images/bl.gif) no-repeat bottom left; } .rbbot { background: url(images/br.gif) no-repeat bottom right; } /* height and width stuff, width not really nessisary. */ .rbtop div, .rbtop, .rbbot div, .rbbot { width: 100%; height: 7px; font-size: 1px; } .rbcontent { margin: 0 7px; } .rbroundbox { width: 50%; margin: 1em auto; } Code:
<div class="rbroundbox"> <div class="rbtop"><div></div></div> <div class="rbcontent"> <p style="text-align: center; font-size:450%;">1.</p> </div><!-- /rbcontent --> <div class="rbbot"><div></div></div> </div><!-- /rbroundbox --> kind regards JiYu |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,526
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Note that the Kindle does not support ePUB. What probably happens is that Kindlepreviewer (or whatever) converts the ePUB to Mobi, and then you are limited by what Mobi does or does not support (and how well the automatic conversion is done).
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2010
Device: Kindle 3nd
|
Quote:
![]() Last edited by JiYu; 09-21-2010 at 05:34 AM. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB (CSS) tweaker app | Loccy | Conversion | 9 | 01-23-2011 10:22 PM |
userstyle.css and epub margins | tselling | Sony Reader Dev Corner | 8 | 10-28-2010 01:51 PM |
epub: CSS for zoom level? | anaglyfen | Calibre | 3 | 09-12-2010 12:38 PM |
converting to epub with my css | fbrzvnrnd | Calibre | 3 | 04-15-2010 02:46 AM |
ePub to ePub - just replace CSS? | ChristopherTD | Calibre | 21 | 02-11-2010 02:50 AM |