Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Webform Style adds styling options such as margin, padding, and background color directly to individual form fields within the Webform module. This allows users to easily adjust the appearance of forms without needing to write custom CSS.

Webform Style extends the [Webform](https://www.drupal.org/project/webform) module by adding easy styling options like margin, padding, and background color to form fields — no custom CSS required.

Features

Webform Style is a lightweight add-on for the Webform module that allows site builders to apply visual styling directly to individual form fields. This eliminates the need for writing custom CSS or using custom templates for common layout and style changes.

Key functionality includes:

Add or update margin, padding, and background color directly from the field edit screen.
New options are available under the "Additional" tab for each field.
Makes forms more visually appealing and user-friendly without requiring front-end development knowledge.

Use cases:

Quickly adjust form spacing and layout to improve UX.
Match form appearance to site branding.
Apply color cues to highlight important sections of a form.

Post-Installation

Once installed and enabled:

1. Ensure the Webform module is already installed and active.
2. Go to any existing or new webform.
3. Edit a field and navigate to the "Additional" tab.
4. You’ll find options to set margin, padding, and background color.
5. No additional configuration pages are required.

These settings are saved per field, and are applied automatically to the rendered webform using inline styles.

Additional Requirements

Webform Module: This module depends on the [Webform](https://www.drupal.org/project/webform) module. Please install and enable it before enabling Webform Style.

There are no specific required libraries, but the following modules may enhance your experience:

Webform UI/UX Enhancers: Modules that improve the layout or accessibility of webforms can work well in tandem with Webform Style.

Similar Projects

While the Webform Layout and Webform Custom Style modules offer some layout or styling control, Webform Style focuses on field-level visual customization (e.g., spacing and background color) directly through the admin UI, offering more granular control without custom code.

Community Documentation

A demo or walkthrough video will be available soon.
Want to contribute documentation or a tutorial? Open a PR or contact the maintainer.
Consider using [DrupalPod](https://www.drupalpod.com/) to test the module locally in seconds.

Activity

Total releases
2
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
1.0.1-alpha1 Pre-release May 8, 2025
1.0.x-dev Dev May 7, 2025