Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make body use “padding”or“margin” ? #136

Open
wangyingowen opened this issue Mar 2, 2018 · 4 comments
Open

How to make body use “padding”or“margin” ? #136

wangyingowen opened this issue Mar 2, 2018 · 4 comments

Comments

@wangyingowen
Copy link

wangyingowen commented Mar 2, 2018

set up a full screen, and my book HTML tag set background, for example, <html... class= "background-img-repeat" >... /body>. body set marin:50px.
The content of the body is covered with the screen, and why? android&&readium 1

@danielweck
Copy link
Member

First of all, what happens when you open your HTML file in standard web browser, and expand the browser window to full screen? Is your content fully stretched too?

@danielweck
Copy link
Member

Secondly, the Readium layout/rendering process removes HTML body margin so that the pagination engine can deliver consistent results with respect to blank spacing on the outer edges. Maybe this is what you are getting to? Have you tried using min-max width CSS to set appropriate dimensions for your content? Again, first it would be preferable to test in regular web browsers, then see how things look in Readium. You could use the Readium cloud reader to save you time, compared with launching the Andoid app.

@danielweck
Copy link
Member

@wangyingowen
Copy link
Author

@danielweck First of all,when Iopen theHTML file in standard web browser,it‘s ok, content not fully stretched;But in readium the content fully stretched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants