I know i can do calc(100% + 15px)
, but is there way to do
calc("content width" + 15px)?
fit-content and auto didn't work, which kinda makes sense.
I have unknown number of items that i want just to take width they need (inline-block) + some amount of px for justify-content: space-between;
If this can't be done with calc, is there an alternative?
(I'm using scss if that changes anything)
border-spacing
. jsfiddle.net/MrLister/s91254cg/3 – Debouchment:not(:last-child)
selector and padding-right and narrowed it to usage of calc() and flexbox. Your comment shifted me to the right direction. But i still wonder if it is possible to do such thing with calc(), without js and accessing the dom. – Gore