Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2010, 06:35 AM   #1
JiYu
Member
JiYu began at the beginning.
 
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; }
and html:

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 -->
In the previewer the background is okay, but its not possible to see any box. Can some body see my mistake or have done that before?

kind regards

JiYu
JiYu is offline   Reply With Quote
Old 09-20-2010, 06:52 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,001
Karma: 4346921
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).
Jellby is offline   Reply With Quote
 
Enthusiast
Old 09-21-2010, 05:31 AM   #3
JiYu
Member
JiYu began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2010
Device: Kindle 3nd
Quote:
Originally Posted by Jellby View Post
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).
Yeah was hoping that mobi probably support it, but it seems to be that its not Ahhhh thats very sad then I need to find another way to accomplish this.

Last edited by JiYu; 09-21-2010 at 05:34 AM.
JiYu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:45 AM.


MobileRead.com is a privately owned, operated and funded community.