CSS Framework Articles

Page 42 of 45

dl-horizontal class in Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 4K+ Views

In definition list, each list item can consist of both the and the elements. stands for definition term, and like a dictionary, this is the term (or phrase) that is being defined. Subsequently, the is the definition of the . You can make terms and descriptions in line up side-by-side using class dl-horizontal.You can try to run the following code to implement the dl-horizontal class:Example           Bootstrap lists                                       Lists       Fruits (Ordered List)                Kiwi          Apple          Mango             Vegetables (UnOrdered List)                Tomato          Brinjal          Broccoli             Horizontal Definition List                Description 1          Item 1          Description 2          Item 2          

Read More

Striped Table with Bootstrap

George John
George John
Updated on 11-Mar-2026 487 Views

To add a striped table in Bootstrap, use the .table-striped class. You can try to run the following code to implement the .table-striped class −Example           Bootstrap Table                                                Footballer Rank                                      Footballer                Rank                                                            Amit                3                                        Kevin                2                                

Read More

Add the border to the table with Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 816 Views

To add border to a table, use the table-bordered class. You can try to run the following code to implement the table-bordered class −Example           Bootstrap Table                                                Footballer Rank                                      Footballer                Rank                Country                                                            Messi                1                Argentina                                        Neymar                2                Brazil                                        Ronaldo                3                Portugal                                

Read More

Bootstrap class input-group-sm

George John
George John
Updated on 11-Mar-2026 259 Views

To make small input group, use the input-group-sm.You can try to run the following code to implement the input-group-sm class in Bootstrap −Example           Bootstrap Example                                                                      $                                                

Read More

Add denser information to a table with Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 255 Views

Use the .table-condensed class, add denser information to a table.You can try to run the following code to implement a table-condensed class in Bootstrap −Example           Bootstrap Table                                                Footballer Rank                                      Footballer                Rank                Country                                                            Messi                1                Argentina                                        Neymar                2                Brazil                                        Ronaldo                3                Portugal                                

Read More

How to add a @tailwind CSS rule to CSS checker?

Nishu Kumari
Nishu Kumari
Updated on 09-Jan-2025 157 Views

When using Tailwind CSS, it's important to make sure your styles are correct. A CSS checker can help find issues, but because Tailwind uses utility classes and the @tailwind rule, the checker may not always recognize them. This makes it harder to validate your styles. Our goal is to configure the CSS checker to work properly with Tailwind's unique syntax, allowing it to effectively validate your styles. Approaches There are two main approaches to configuring your CSS checker to work well with Tailwind CSS: Basic Stylelint Configuration Extended Configuration with Custom ...

Read More

How can I use Tailwind CSS with variants in Framer Motion?

Nishu Kumari
Nishu Kumari
Updated on 07-Jan-2025 454 Views

Combining Tailwind CSS for styling and Framer Motion for animations can be challenging because Tailwind uses static utility classes, while Framer Motion relies on dynamic animation variants. This can create conflicts and make it difficult to integrate both smoothly in a React project. Our task is to find a way to use Tailwind's styles with Framer Motion's animations without conflicts, allowing smooth integration in a React project. Approaches we will cover different approaches to integrate Tailwind CSS with FramerMotion, explained step by step for smooth styling and animations in your React project. Using ...

Read More

How to use Tailwind CSS with CSS Modules in Next.js?

Nishu Kumari
Nishu Kumari
Updated on 06-Jan-2025 349 Views

When using Tailwind CSS in a Next.js project, it's common to apply utility classes for styling. However, if you're using CSS Modules, it can be difficult because the styles are scoped locally. The @apply directive in Tailwind allows you to combine multiple utility classes into one rule, making it easier to use Tailwind with CSS Modules. Our goal is to show you how to set up Tailwind CSS with CSS Modules in a Next.js project and use the @apply directive properly. Approaches Here, we will cover two approaches for using Tailwind's @apply inside CSS Modules in a Next.js project. ...

Read More

How to Remove Arrow on Input Type Number with Tailwind CSS?

Nishu Kumari
Nishu Kumari
Updated on 03-Jan-2025 382 Views

When using an field, browsers automatically show up and down arrows to adjust the number. While these arrows can be helpful, they might not fit your design. Tailwind CSS doesn't have a built-in way to remove them, so you'll need to manually hide the arrows while still using Tailwind for the rest of your styling. Our goal is to remove the arrows without affecting the other Tailwind styles. Approaches We will cover two methods to remove the arrows from fields: Adding custom CSS for Webkit browsers Cross-browser solution (including ...

Read More

How to use Tailwind CSS with the Next.js Image component?

Nishu Kumari
Nishu Kumari
Updated on 31-Dec-2024 228 Views

When working with Next.js, the Image component offers features like optimization, responsive sizing, and lazy loading for better performance. However, styling these images with Tailwind CSS while keeping the code clean and ensuring image optimization works can be challenging. Our goal is to show the best ways to use Tailwind CSS with the Next.js Image component for better performance and design. We'll go through a few examples to show how to style and optimize images using Tailwind and Next.js. Setting Up Tailwind CSS with Next.js To get started, you first need to install Tailwind CSS in your Next.js ...

Read More
Showing 411–420 of 445 articles
Advertisements