DEV Community

Discussion on: CSS and media queries

Collapse
 
arccosine profile image
ArcCosine

If you already knew it, I'm sorry, is not it easy to use calc?

See, developer.mozilla.org/en-US/docs/W...

For example in this case,

padding-right : calc( 100%/4 - 255px/4 );

I'm glad if you can use it as a reference

Collapse
 
tyzia profile image
Andrei Navumau

That's amazing! Thank you, ArcCosine! I didn't know about calc() in css. It does exactly, what I need.