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

Fit to page? #15

Closed
wootwoot1234 opened this issue Apr 4, 2017 · 4 comments
Closed

Fit to page? #15

wootwoot1234 opened this issue Apr 4, 2017 · 4 comments

Comments

@wootwoot1234
Copy link

Is there a way to make some content fit to a page? I'm using the page-break-after class but having an issue where sometimes some of the content is too long and it rolls over onto a new page. Is there a way to shrink or cut off the content so that it doesn't create another page?

@BafS
Copy link
Owner

BafS commented Apr 5, 2017

What kind of content is it ? If it's text, they will be 3 lines left at the top/bottom of a page.
https://github.com/BafS/Gutenberg/blob/master/scss/_pagination.scss#L21

For the moment it's hardcoded but I will probably create a variable to change that more easily, what do you think ?

@wootwoot1234
Copy link
Author

Thanks for responding. It's a simple page layout. There is a large image that takes up 60% of the page and text below, that takes 40%. I can't control the amount of text though. I don't care if the text gets cut off but I just want to make sure that it doesn't create a second page. How can I do that?

@BafS
Copy link
Owner

BafS commented Apr 5, 2017

Do you have a h1, h2 or h3 ? It's really hard to help you without any source, can you provide a screenshot or some code please ? Thanks.

@wootwoot1234
Copy link
Author

Thanks for the help. I think what I'm trying to do isn't possible with css.

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