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, 11: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, 11:45 PM   #2
theducks
Grand Sorcerer
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: 15,287
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 09-09-2011, 04: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: 514
Karma: 24612
Join Date: Aug 2009
Location: Cochabamba, BO
Device: Onyx Boox 60, iPod Touch
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, 05: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: 6,323
Karma: 4964183
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, 05: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,188
Karma: 727236
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, 77 views)
charleski is offline   Reply With Quote
Old 09-10-2011, 01: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: 3,188
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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 06:28 AM
$119.99 PE New in Box Emptora enTourage eDGe 4 08-17-2011 03:14 PM
Sigil 0.3.4 / Sigil 0.4.0 RC1 / Cover in Nook Color Bertrand Sigil 13 08-06-2011 05:06 AM
Sigil 0.3.4 / Problème CSS entre Sigil et iPad Grivels Software 10 07-03-2011 10:06 AM
Looking for a book by C J Box phansen1218 Reading Recommendations 2 09-19-2010 06:29 PM


All times are GMT -4. The time now is 02:38 PM.


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