Dynamic width adjustment of sliders, graduated bars etc

Hi guys
I know this has been asked before, but I didn’t see a real answer anywhere. Is there any way to assign a dynamic width by CSS styles to the graduated bar or slider component? It would be great to be able to have it be a relative size to the parent div rather than a fixed width given in px. Or is that fundamentally impossible with the implementation of these components?

Is it not possible to use percent rather than pixels in the component CSS?