Using auto in CSS calc

I searched a lot, but did not find a good resource.

I want to calculate the height of a div as its contents plus the size of the fix. I tested calc(auto+50px) , but unfortunately it does not work (the browser does not interpret it as valid code).

+6
source share
1 answer

Does this get the desired result?

 div { height: auto; padding-bottom: 50px; } 
+4
source

Source: https://habr.com/ru/post/952237/


All Articles