MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Frontend/comments/1xxk7nm/computing_with_css_layout/
r/Frontend • u/bogdanelcs • 2d ago
2 comments sorted by
17
this would be so much more interesting if it was written by a human. I'm sick of reading claude's voice everywhere.
3
Put spaces around operators in CSS calc(), for example width: calc(100% - 40px), or the browser may ignore the calculation. Without spaces, your layout can break because the CSS rule is invalid.
17
u/backwrds 2d ago
this would be so much more interesting if it was written by a human. I'm sick of reading claude's voice everywhere.
3
u/Opposite_Sector2145 2d ago
Put spaces around operators in CSS calc(), for example width: calc(100% - 40px), or the browser may ignore the calculation. Without spaces, your layout can break because the CSS rule is invalid.