Advanced states
Style hover, focus, active, child, pseudo element and custom selector states for any element or class.
Each element or class can have style instances for states. Pick a state like Hover or Focus, optionally a subject such as a child tag or child class, and edit styles as usual; they apply only in that state. For anything not in the list you can type a custom state like :nth-child(3) or a descendant selector.
How it works
- Built in states: Default, Hover, Active (.dh-active); Forms: Placeholder, Focus, Focus Within, Disabled, Error (.dh-error); Children: First child, Last child, First of type, Last of type, Nth child odd, Nth child even; Advanced: After, Before, Pressed, Empty.
- Subjects (target a descendant): div, a, p, span, img, video, h1 to h6, ol, ul, li, i, form, input, select, textarea, label, iframe, * (all), plus any class or id found inside the element ('Children with class', 'Children with ID').
- State and subject combine, for example ':hover h3'.
- Custom tab: free text state; values not starting with :, ., [, # are treated as a descendant; states cannot start with a number.
- Stored as a state key per breakpoint; server keeps up to 40 characters per state.
- Compiled as identifier + state, for example .card:hover h3 { }.
- ::before and ::after show a Content field.
- Shortcuts: CMD/CTRL + H edit hover state, CMD/CTRL + G back to default.
- Existing instances are listed and can be removed.
When to use it
- Change a card's title color when the card is hovered
- Style form placeholders and focus rings
- Add a decorative ::before line
Limitations
- State names over 40 characters are dropped on save
- Custom states are not validated beyond a leading number check
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Select an element or class
- Click + Instance in the selector
- Pick a State and optional Subject, or use the Custom tab
- Click Create and edit styles
Questions.
Can I style a child on parent hover?
What is the Active state?
Related features.
Native class system
Create reusable CSS classes, combine several on one element, and edit them visually across breakpoints and states.
Direct tag styling
Style a single element directly in the Designer without creating a class first.
Design panel
A visual CSS editor for layout, spacing, size, position, typography, backgrounds, borders, effects and more.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→