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

Is there a way to subtract some pixels? #10

Closed
saeta-eth opened this issue Oct 31, 2018 · 1 comment
Closed

Is there a way to subtract some pixels? #10

saeta-eth opened this issue Oct 31, 2018 · 1 comment

Comments

@saeta-eth
Copy link

Hi! Thanks for this incredible component!

I need a similar behavior to height: calc(100vh - 56px);
It's possible?

Thanks

@saeta-eth saeta-eth changed the title Is there a way to subtract some pixeles? Is there a way to subtract some pixels? Oct 31, 2018
@saeta-eth
Copy link
Author

I have found the solution:

<Div100vh style={{ height: 'calc(100rvh - 56px)', width: '100%' }}>
  ....
</Div100vh>

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

1 participant