Open In App
Related Articles

Tailwind CSS Scale

Improve Article
Save Article
Like Article

This class accepts lots of value in tailwind CSS in which all the functional properties are covered in class form. This class is used to resize the element in the 2D plane. It scales the elements in horizontal and vertical directions. In CSS, we can do that by using the CSS scale() function.

Scale classes:

  • scale-0|50|75|90|95|100|105|110|125|150: This class is used to scale on both axis percentage-wise.
  • scale-x-0|50|75|90|95|100|105|110|125|150: This class is used to scale on x-axis percentage-wise.
  • scale-y-0|50|75|90|95|100|105|110|125|150: This class is used to scale on y-axis percentage-wise.


<element class="scale-{axis-percentage}">...</element>



<!DOCTYPE html> 
    <link href
<body class="text-center"
    <h1 class="text-green-600 text-5xl font-bold"
    <b>Tailwind CSS Scale Class</b
    <div class="bg-green-300 
                grid grid-flow-col"> 
    <div class="bg-no-repeat
                w-16 h-16 transform scale-50" 
    <div class="bg-no-repeat 
                w-16 h-16 transform scale-75" 
    <div class="bg-no-repeat 
                w-16 h-16 transform scale-100" 
    <div class="bg-no-repeat 
                w-16 h-16 transform scale-125" 


CSS Scale 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