Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set width over 100% using Tailwind CSS

I need to set div width to 110%, but it doesn't seem possible with Tailwind CSS.

Their documentation only specifies a 100% value.

Class Properties
w-full width: 100%;
like image 521
Piazzi Avatar asked Jul 15 '26 00:07

Piazzi


1 Answers

You can use JIT as w-[110%].

JIT mode is default in Tailwind v3 and these values are called arbitrary values.
In v2 you have to enable JIT mode.

like image 126
Jax-p Avatar answered Jul 18 '26 00:07

Jax-p