Open In App
Related Articles

Tailwind CSS Resize

Improve Article
Save Article
Like Article

This class accepts lots of value in tailwind CSS in which all the properties are covered as a class form. This class is used to resize the element according to user requirements. It does not apply to inline elements or to block elements where overflow is visible. In CSS, we do that by using the CSS resize property


  • resize-none: This class is to prevent an element from being resizable.
  • resize-y: This class is to make an element vertically resizable.
  • resize-x: This class is to make an element horizontally resizable.
  • resize: This class is to make an element horizontally and vertically resizable.


<element class="pointer-{axis-boolean}">...</element>



<!DOCTYPE html>
    <link href
<body class="text-center"
    <h1 class="text-green-600 text-5xl font-bold"
    <b>Tailwind CSS Resize Class</b
    <div id="main" class="p-2 justify-around ml-32 h-26 w-2/3 flex 
                          bg-green-200 border-solid border-4 
                          border-green-900 gap-4"> 
        <textarea class="resize border rounded-md
                         w-24 h-12"></textarea>
        <textarea class="resize-y border rounded-md
                         w-24 h-12"></textarea>
        <textarea class="resize-x border rounded-md
                         w-24 h-12"></textarea>
        <textarea class="resize-none border rounded-md
                         w-24 h-12"></textarea>


Tailwind CSS resize class

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 23 Mar, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials