Use screen.width inside calc (css)

Viewed 50656

Is there a was of using screen.width inside calc? Something like this:

 left: calc(250px + screen.width - 1024px)!important;

It is for a concrete situation where the @media(max-width: 1024px) won't work.

4 Answers

Afaik there's no way how to get "actual viewport width" inside the calc formula :(

Related