<div className="overflow-x-auto p-5 gap-5">
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
<div className={` bg-orange-700 w-[300px] h-[300px]`}></div>
</div>
Trying to implement overflow-x-auto
to make the content horizontally scrollable, but it's not working as expected. How can I achieve this effect?
https://i.sstatic.net/eOLXp.png
The content is currently displayed vertically, and using flex
changes it to horizontal layout but doesn't enable scrolling. Is there a way to make it horizontally scrollable while keeping the size intact?