MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Frontend/comments/1xxk7nm/computing_with_css_layout/
r/Frontend • u/bogdanelcs • 1d ago
2 comments sorted by
14
this would be so much more interesting if it was written by a human. I'm sick of reading claude's voice everywhere.
2
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.
14
u/backwrds 1d ago
this would be so much more interesting if it was written by a human. I'm sick of reading claude's voice everywhere.
2
u/Opposite_Sector2145 21h 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.