Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tailwindcss gap is not working on iphone chrome

I am facing some problem with CSS flexbox gap. Why it is not working on iPhone? enter image description here

Here's my code

<div className="flex flex-col gap-2">

on desktop enter image description here

on iphone chrome enter image description here

like image 425
Thomas Avatar asked Dec 07 '22 09:12

Thomas


1 Answers

You can achieve spacing on Tailwind flexbox with space- classes.

<div className="flex flex-col space-x-4">

By the way; applying gap class names on Tailwind flexbox is not a generic method. Gap sizing works only with grid containers.

<div className="grid gap-1 grid-cols-2">
like image 63
zonay Avatar answered Dec 11 '22 08:12

zonay