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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2011, 10:40 PM   #1
deasha
Junior Member
deasha began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2011
Device: PC,iPad
Box in Sigil

I've been trying to make box in Sigil by using stylesheet.
using Adobe Digital Edition, I can view the box properly. However, when I view the ebook using ibook, the box can't be view properly. The alignment is still off eventhough I hv made modification to the code. This is the code that I use:

Quote:
div.box
{
width:200px;
padding:10px;
text-align:center;
border:3px solid black;
margin:0;
}
is there a problem with the code? why viewing in Adode digital edition and ibook have different?
deasha is offline   Reply With Quote
Old 09-08-2011, 10:45 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by deasha View Post
I've been trying to make box in Sigil by using stylesheet.
using Adobe Digital Edition, I can view the box properly. However, when I view the ebook using ibook, the box can't be view properly. The alignment is still off eventhough I hv made modification to the code. This is the code that I use:



is there a problem with the code? why viewing in Adode digital edition and ibook have different?
I don't know about i-thingies, but you might have to use a left Margin to mimic centering. (like you have to do with ADE and a fractional HR)
theducks is offline   Reply With Quote
Advert
Old 09-09-2011, 03:07 AM   #3
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 519
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
Quote:
Originally Posted by deasha View Post
The alignment is still off eventhough I hv made modification to the code.
What alignment do you mean? The text-align is to center the contents of the box, not the box itself. For centering the box, use margin:auto.
pietvo is offline   Reply With Quote
Old 09-09-2011, 04:08 AM   #4
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: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by pietvo View Post
For centering the box, use margin:auto.
... and don't be surprised if it doesn't work, ADE treats "auto" as "0" (which is annoying, but allowed by the spec).
Jellby is offline   Reply With Quote
Old 09-09-2011, 04:41 AM   #5
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Try wrapping the div that defines the box in an outer container that defines its alignment. As theducks mentioned, you can align the box itself by using % measures on the width and margin-left properties in tandem.
Attached Files
File Type: epub box.epub (2.0 KB, 250 views)
charleski is offline   Reply With Quote
Advert
Old 09-10-2011, 12:57 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
As you work with iBooks, expect things to render differently. iBooks may look nice, but is not know for following specs. For now, ADE is follows the specs the closest, but not perfect.
Toxaris 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
Sigil 0.4.1 : unwanted span added by Sigil Bertrand Sigil 0 09-02-2011 05:28 AM
$119.99 PE New in Box Emptora enTourage eDGe 4 08-17-2011 02:14 PM
Sigil 0.3.4 / Sigil 0.4.0 RC1 / Cover in Nook Color Bertrand Sigil 13 08-06-2011 04:06 AM
Sigil 0.3.4 / Problème CSS entre Sigil et iPad Grivels Software 10 07-03-2011 09:06 AM
Looking for a book by C J Box phansen1218 Reading Recommendations 2 09-19-2010 05:29 PM


All times are GMT -4. The time now is 10:53 AM.


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