View Single Post
Old 04-14-2013, 02:12 PM   #5
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by crutledge View Post
Code:
.centerbox{
margin-left:auto;
margin-right:auto;
}
That's the part that's centering the block, and the part that doesn't work in ADE, because, according to the ePub spec:

"Reading Systems may set the value of any margin property whose specified value is auto to 0."

and it seems ADE just chooses to do that, there's not much we can do.

But, since you are using a relative width, anyway (width:50%), you can get the desired effect with:

Code:
margin-left:25%;
margin-right:25%;
(actually, I'm surprised it works in the Sony, which version is it?)
Jellby is offline   Reply With Quote