Blog / Nonprofit· April 12, 2025

How to style EveryAction forms without breaking their code.

EveryAction forms embedded with ActionTag render in your page, so your CSS can reach them. Which classes to target and how to keep the form working.

Gary Bunofsky

Gary Bunofsky

Lead Developer

A blue and white porcelain jar with wave and horse motifs, evoking traditional Chinese patterns on a modern gray background

You embedded an EveryAction form and it doesn't look like the rest of your site. The fonts are off, the button is the wrong color, and the fields don't match anything else on the page.

The good news is that you can fix this with your own CSS. EveryAction's embed code, called ActionTag, draws the form directly into your page. It isn't an iframe. Your stylesheet can reach every field, as long as you target the right classes and leave the form's behavior alone.

Here's how.


1. Know how the form gets into your page.

When you copy the embed code from an Online Actions form in EveryAction, you get something like this:

<link rel="stylesheet" href="https://static.everyaction.com/ea-actiontag/at.min.css">
<script src="https://static.everyaction.com/ea-actiontag/at.js" crossorigin="anonymous"></script>

<div
  class="ngp-form"
  data-form-url="https://secure.everyaction.com/v1/Forms/YOUR_FORM_ID"
  data-fastaction-endpoint="https://fastaction.ngpvan.com"
  data-inline-errors="true"
></div>

Use the snippet EveryAction gives you, since the data attributes vary by form and account.

When the page loads, at.js fetches the form and builds it inside the .ngp-form div as regular HTML. That has two consequences. Your CSS applies to it like anything else on the page. And the form doesn't exist until the script finishes, so anything you do with JavaScript has to wait for it.


2. Learn the .at- classes.

ActionTag gives its elements class names that start with .at-. Open your browser's inspector on a live form to see the exact markup for yours. The ones you'll use most:

  • .at-title and .at-legend for the form heading and section headings
  • .at-fields for groups of fields
  • .at-row for a row of one or more fields
  • .at-text for a text field and its label
  • .at-form-submit for the area around the submit button
  • .at-submit for the submit button itself

The at.min.css stylesheet in the embed code styles these by default. Keep it loaded and write your own rules on top. It handles layout, validation states, and the parts of the form you'll never think to style.


3. Scope every rule to the form.

ActionTag's markup lives in your page, which cuts both ways. Your CSS can reach the form, and the form's styles can collide with yours. Start every selector with .ngp-form so your rules stay inside the form and win over ActionTag's defaults.

.ngp-form .at-title,
.ngp-form .at-legend {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.ngp-form .at-text input {
  border: 1px solid #d6d3d1;
  border-radius: 0.375rem;
  font-family: 'Inter', sans-serif;
  padding: 0.75rem;
}

.ngp-form .at-submit {
  background: #111827;
  border: none;
  color: #fff;
  font-weight: 600;
}

.ngp-form .at-submit:hover,
.ngp-form .at-submit:focus-visible {
  background: #374151;
}

Avoid bare element selectors. A rule like this restyles every field on your site, including the ones inside the form you didn't mean to touch:

input {
  border: none;
  font-size: 20px;
}

If a rule doesn't take, check the inspector to see which ActionTag selector is beating it, and match its specificity. Reach for !important only as a last resort.


4. Run JavaScript after the form renders.

Some changes need JavaScript, like adding a class, moving the submit button, or attaching analytics. Since the form appears after the page loads, a script that runs on page load won't find it. ActionTag reads a global nvtag_callbacks object for this:

var nvtag_callbacks = nvtag_callbacks || {};
nvtag_callbacks.postRender = nvtag_callbacks.postRender || [];
nvtag_callbacks.postRender.push(function () {
  // The form is in the page now.
});

Define it before the at.js script tag so your callback is registered in time.

Change how the form looks, not how it works. Don't rename fields, remove hidden inputs, or replace the submit button with your own. ActionTag relies on that markup to validate and send the submission.


5. Check it on a phone.

Most people will fill out your form on a phone. Look at it on a real one before you call it done.

  • Let the form fill its container. A fixed width on .ngp-form will overflow small screens.
  • Make the submit button easy to tap, at least 44 pixels tall.
  • Keep input text at 16 pixels or larger. Smaller text makes iPhones zoom in when someone taps a field.

6. Test the whole flow.

A style change can hide an error message or break keyboard focus without you noticing. After each change, go through the form the way a supporter would:

  • Submit it with a required field left empty and make sure the errors are visible.
  • Submit it for real and check the thank-you message.
  • Tab through every field and the button with the keyboard alone.
  • Check that the record shows up in EveryAction.

7. When CSS isn't enough.

If the design calls for a layout ActionTag can't produce, or one form needs to apply different activist codes depending on the page, build your own form and send the data through the NGP VAN API instead. It takes a server and an access review, but you control every pixel. Our guide to connecting your website to EveryAction and NGP VAN walks through both approaches.

Related guides.

For embed code, ActionTag callbacks, and the NGP VAN API, see connecting your website to EveryAction and NGP VAN. If you also raise money on ActBlue or run events on Mobilize, see adding ActBlue to your website and showing Mobilize events on your website.

Final thoughts.

You don't have to settle for a form that looks borrowed. With scoped CSS and a clear design system, your EveryAction forms can match the rest of your site and keep working the way EveryAction expects.

We help nonprofits get EveryAction and the tools around it working on their websites, from styled embeds to custom integrations and workflows. Tell us what you're trying to do.

More thinking.

All posts
A megaphone
mobilize · December 1, 2026

How to show Mobilize events on your website.

Use the public Mobilize API to list your upcoming events on your own site. Finding your organization ID, filters, rendering, caching, and RSVPs.

Stacked sheets of paper
everyaction · December 1, 2026

Connecting your website to EveryAction and NGP VAN.

Embed EveryAction forms with ActionTag, or use the NGP VAN API to find or create people and apply activist codes. Auth, access tiers, and examples.

Tall stone pillars in soft light, suggesting a building under construction.
nonprofit · December 1, 2026

Who Designs Capital Campaign Websites for Nonprofits?

Your options for a capital campaign website, what the site needs to do at each phase, and how Loopdash designs and builds them for nonprofits.