|
|
#31 | |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Will report more later. Hitch |
|
|
|
|
|
|
#32 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,880
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
The best way to center an image in a "box" (any box, body, div, etc., etc.) is to set the picture as background of the box. It's easy to control the size and the position (virtually one can put the image wherever, not only in the center). I had posted the method a couple of month ago and it works flawlessly under ADE:
https://www.mobileread.com/forums/sh...54&postcount=3 In the post appointed by the previous link, I chose as "background-size: contain" but one can use any size. The same with position. In the post I chose "center top" but one can use "center center" or "10% 65%" or whatever. In readers based on Webkit (that is, Kindle, but only modern Kindles, those ones who support .kf8 because this method is not for K2 or KDX -I must say this since otherwise Hitch will be angry with me ), it's neccesary for us to add the property "background-attachment: fixed;" and all will work perfectly. Also that property must be added to work in Sigil (but beware, if we add the property in RMSDK/ADE engines, then the method won't work).
Last edited by RbnJrg; 08-01-2018 at 03:03 PM. |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Center a cover image | Crusader | Sigil | 2 | 10-18-2009 09:51 AM |
| Using Bookdesigner...Center title up and down | davers | LRF | 5 | 04-24-2009 10:53 AM |
| How to center 10% hr on ADE/PRS505 | Ankh | ePub | 5 | 04-16-2009 11:05 PM |
| Support center iRex | ce3po | iRex | 3 | 12-21-2007 08:52 AM |
| Mobipockets v6.1 is up in the beta center | penty | Bookeen | 4 | 11-06-2007 07:31 PM |