Skip to content
Related Articles

Related Articles

Improve Article
Tailwind CSS Divide Style
  • Last Updated : 25 Feb, 2021

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can set the divide style of any divide.

Divide Style Classes:

  • divide-solid: This class is used to set the divide class in solid form.
  • divide-dashed: This class is used to set the divide class in dashed form.
  • divide-dotted: This class is used to set the divide class in dotted form.
  • divide-double: This class is used to set the divide class in double form.
  • divide-none: This class is used for no divide.

Syntax:

<element class="divide-{style}">...</element>

Example:

HTML




<!DOCTYPE html> 
<html
<head
    <link
    href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
    rel="stylesheet"
</head
  
<body class="text-center"
    <h1 class="text-green-600 text-5xl font-bold"
    GeeksforGeeks 
    </h1
    <b>Tailwind CSS Divide Style Class</b
    <div class="mx-4 bg-green-200 p-2">
        <div class="grid grid-cols-3 divide-x-4 
                    divide-pink-500 divide-dashed">
            <div>GeeksforGeeks</div>
            <div>A Computer Science Portal</div>
            <div>For Geeks</div>
        </div>
        <br>
        <div class="grid grid-cols-3 divide-x-4 
                    divide-yellow-500 divide-solid">
            <div>GeeksforGeeks</div>
            <div>A Computer Science Portal</div>
            <div>For Geeks</div>
        </div>
        <br>
        <div class="grid grid-cols-3 divide-x-4 
                    divide-gray-500 divide-double">
            <div>GeeksforGeeks</div>
            <div>A Computer Science Portal</div>
            <div>For Geeks</div>
        </div>
        <br>
        <div class="grid grid-cols-3 divide-x-4 
                    divide-red-500 divide-dotted">
            <div>GeeksforGeeks</div>
            <div>A Computer Science Portal</div>
            <div>For Geeks</div>
        </div>
    </div>
</body
</html>

Output:

divide style class




My Personal Notes arrow_drop_up
Recommended Articles
Page :