Hao Wu

How do I use calc() with max-content?

I have a grid layout which can be simplified like this.
What I want to achieve is the .side should take whatever space the content needs to by default using max-content, but user can enlarge it by increasing the –size custom css property….

How do I use calc() with min-content?

I have a grid layout which can be simplified like this.
What I want to achieve is the .side should take whatever space the content needs to by default using min-content, but user can enlarge it by increasing the –size custom css property….

Regex to match a string like ababba etc

Write an expression to match strings like a, aba, ababba, ababbabbba, etc. The number of consecutive b increases one by one after each a.

I’m learning regex and struggling with this regex quiz for several days but still could quite get i…