Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
ELI5 Css Calc()
Post Body

I have been watching countless videos on css calc & I totally understand that calc does a simple calculation. I get that. I just can't wrap my head around of WHY would you use it. In what real world scenario? I feel like you can do the same things without calc for ex.

instead of

.content {height: calc(100% - 60px);}

can't you just do?

.content {height: calc(100% - 3%);}

(just find out what is 60px is in percents)

or just simply not do a calculation at all & just do

.content {height: 97%;}

Obviously calc() is useful, I just personally do not get it see the purpose of it. Can someone please help me wrap my head around calc.. what is it useful for.

Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,204
Link Karma
1,287
Comment Karma
900
Profile updated: 4 hours ago
Posts updated: 1 week ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago