Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iBooks running on iOS6 has background-color problem and..

iBooks(3.0.2) - background color doesn't work on entire page.


User uploaded file

[iOS5_bg_o]

User uploaded file

[iOS6_bg_x]


Both ‘iOS5_bg_o’ and ‘iOS6_bg_x’ have the same CSS settings.

But they look different.

In the iOS6, BODY tag’s background color doesn’t cover the full page.

I wonder what Apple changed on iOS6.



the other problem is about height.

I set the CSS like the picture 'iOS5_height_o'.

It works perfectly on iOS5.

but the same file look differently on iOS6.(see iOS6_height_x.png)

It is the same epub. but top margin has gone and height of inner table has shrinked.

I guess that some part of layout system went wrong on iOS6.

User uploaded file

[iOS5_height_o]

User uploaded file

[iOS6_height_x]



Do you have any idea?

Thank you for your concern.

iPad 2, iOS 6.0.1, CSS layout system ibooks

Posted on Jan 17, 2013 12:42 AM

Reply
Question marked as Best reply

Posted on Jan 26, 2013 3:31 PM

You won't be able to change the background color (to the edge of the page) in a normal EPUB book in iBooks. You could only achieve this in a Fixed Layout document.


As for the height issue I would have to look at the code.


JM

12 replies

Nov 10, 2013 12:04 PM in response to ibuksgrup

Hi ibuksgrup,


I can't remember how I fixed Sean’s problem — and unfortunately I deleted the EPUB file.


I played around with Sean's original code, and I managed to make an element fill the page by using the CSS3 vh unit (Sizing with CSS3's vw and vh units - Snook.ca):


So in Sean's code, it would be like this:


.table {

      height:100vh !important;

}



Note: I added the ‘

!important
’ to overwrite the external stylesheet rule — you shouldn't have to use this in your code.


I hope this helps!


JM

Nov 11, 2013 2:25 PM in response to Jean-Michel Dentand

I really apreciate your help!

But I checked with iPad and Proof but don't work correctly.


We have in xhtml the following code


<body class="negro" id="rebelion" xml:lang="es-ES">

<div class="historia">

<p class="P0" id="toc_marker-4"><span class="color-blanco">Las cuatro edades<br />

del grafismo</span></p>

</div>

</body>


And in css file


body.negro {

background-color: black !important;

height:100vh !important;

}


If you can help us Iwill be very grateful with you


Thanks a lot

iBooks running on iOS6 has background-color problem and..

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.