This is my code.
const dummy= 13;
<div className='relative w-[86%] h-1 rounded-xl'>
<div className={`ml-[${dummy}%] absolute h-3 max-w-[0.18rem]`}></div>
</div>
Dummy variable will be dynamic so i was trying to see if it'll work out for random values. However it is only working for the variables 10 and 100 but nothing else.
However, when i write down my code as below it works perfectly fine for any values.
<div className='relative w-[86%] h-1 rounded-xl'>
<div className={`ml-[13%] absolute h-3 max-w-[0.18rem]`}></div>
</div>
Anyone has any idea what's the cause of this?