In Droip, a Class serves as a blueprint for creating objects, defining their structure, and initial style attributes.
On the other hand, a Sub-class is a child class that inherits the attributes of its parent class while also having the ability to possess its own unique characteristics.
In Droip, using classes and sub-classes helps you manage and reuse styles efficiently across your website.
Whenever you customize the style of an element, Droip automatically creates a class to hold those style rules, eliminating the need to define them from scratch manually.
A class is a reusable style group applied to one or more elements. To create a class:
You can also rename the class to something meaningful for easier identification and reuse.
A sub-class builds upon an existing class with additional or overridden styles. It’s ideal for cases where you want to slightly tweak a base design without affecting all instances of the main class.
To create a sub-class:
This layered styling approach gives you granular control while maintaining consistency across your site.
To edit a class in Droip:
Droip’s class system allows you to efficiently duplicate and manage styles across multiple elements. Instead of manually recreating styles, you can simply apply existing classes or sub-classes to new elements.
How It Works
To make another element adopt the same style, just apply the same class or sub-class used in the original element. However, keep in mind that sub-classes must be applied after their parent class—this ensures proper inheritance and styling accuracy.
Example Scenario
Let’s walk through a practical example:
You can easily rename, detach, or remove a class:
This lets you keep your styling system clean, consistent, and easy to manage.
Droip lets you fine-tune how elements look and behave in different interaction states—allowing you to create more dynamic, user-friendly experiences.
Here are the supported states:
Neutral
This is the default appearance of an element when no interaction is taking place. It’s how the element looks when the page first loads.
Hover
Triggered when a user places their cursor over an element without clicking. This is commonly used for buttons, links, and interactive components.
Focused
This state is activated when a user navigates to an interactive element (like a button or input field) using the keyboard. It helps with accessibility and keyboard navigation.
These states can be styled individually in Droip, giving you control over how elements respond to different user interactions.
Just below the States Menu, you’ll find the Pseudo Element dropdown. Droip supports Pseudo Elements, which let you style specific parts of an element that aren’t explicitly defined in the HTML.
These are especially useful for adding visual effects or enhancing form elements without extra markup.
What Are Pseudo Elements?
Pseudo elements let you style:
How to Use Pseudo Elements in Droip:
Need more context? Refer to the MDN Web Docs on Pseudo Elements for deeper explanations.
Was this page helpful?
Our website uses cookies to improve your browsing experience on our website. By continuing to use this website, you agree to their use. For details, please check our Privacy Policy.
Experience Droip in Action – Explore a live-built page and see the power of our builder in action.
Explore Live