I am using Tailwind CSS in React and I am trying to set a width of 500px for my images div. But the width of the div does not increase more than 300px.
<div className="flex flex-row gap-4 mb-12">
<div className='images px-6 basis-0'>
<div className=' img bg-primary mb-4 w-[300px] h-[300px]'>
</div>
<div className=' img bg-primary mb-4 w-[300px] h-[300px]'>
</div>
<div className=' img bg-primary mb-4 w-[300px] h-[300px]'>
</div>
</div>
<div className='product_info basis-0'>
...
</div>
</div>
When I change the width in the custom classes from 300px to 500px the boxes just disappear:
If I manually adjust the width and height using CSS, it works fine.
.img{
width: 500px;
height: 300px;
}
I don't understand what is causing this issue :(


