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

I need a use example #9

Open
ziyafenn opened this issue Aug 26, 2018 · 2 comments
Open

I need a use example #9

ziyafenn opened this issue Aug 26, 2018 · 2 comments

Comments

@ziyafenn
Copy link

Hi there! I want to convert VW to PX, but i have no clue how to do it correctly using your functions.

Do i need to use all of the functions here or can i just use a specific part of it?

Would really appreciate any help of how can i use it.

Thanks!

@kgcreative
Copy link
Contributor

vw (relative units) and px (absolute units) are incompatible. Since vw units are dependent on the size of the viewport, they cannot be converted at compile time

@kgcreative
Copy link
Contributor

(but the syntax would be

.element {
 width: px(1em);
}

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