Tally empowers form creators to design their forms without writing a single line of code. However, a tiny sprinkle of code can add that extra finishing touch to your form.

Injecting custom CSS allows you to style your form in ways not available in the default design options.

tally-pro copy.jpg

<aside> <img src="/icons/flash_pink.svg" alt="/icons/flash_pink.svg" width="40px" /> Injecting custom CSS is a Tally Pro feature.

</aside>



How to inject custom CSS

There are two ways you can customize your forms using custom CSS:

1️⃣ Open the design options in the form builder and inject custom CSS into the CSS block.

2️⃣ ****Forms with a custom domain can use the code injection box on the form and domain level.

screenshot css box.jpg

screenshot code injection.jpg

<aside> <img src="/icons/exclamation-mark_red.svg" alt="/icons/exclamation-mark_red.svg" width="40px" /> Custom CSS requires coding skills and falls outside the scope of our support.

This means we’re unable to help further with setup or troubleshooting. Additionally, with a code-based solution, we can’t guarantee its functionality or full compatibility with Tally. This includes how it functions with our responsive design or future platform updates.

</aside>

CSS classes

These CSS classes can be overridden with custom CSS applied to your form.

<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> Custom styles may not always work seamlessly in the form builder because the HTML structure of blocks may differ in the editor. To ensure that your custom styles are correctly applied, we recommend testing them in Preview mode, which replicates the same HTML structure as published forms.

</aside>

<aside> <img src="/icons/exclamation-mark_red.svg" alt="/icons/exclamation-mark_red.svg" width="40px" /> Avoid using class names that are not listed in the table below. For instance, class names such as sc-a3e5684a-0, styled__ContentH3-sc-aw1rsf-4, cwaPRn, etc., are automatically generated and subject to change, potentially causing your CSS rules to break.

</aside>

Description CSS Class
Full page .tally-app
Form logo .tally-form-logo
Form cover .tally-form-cover
Form page .tally-page
Form page number .tally-page-1, .tally-page-2, .tally-page-3, etc.
Form ‘Thank you' page .tally-page-thank-you
Submit button .tally-submit-button
Back button .tally-back-button
Required question indicator .tally-required-indicator
Validation error .tally-validation-error
Column list .tally-column-list
Column .tally-column
Tally block .tally-block
Form title block .tally-block-form-title
Text block .tally-block-text
Title block .tally-block-title
Label block .tally-block-label
Heading 1 block .tally-block-heading-1
Heading 2 block .tally-block-heading-2
Heading 3 block .tally-block-heading-3
Divider block .tally-block-divider
Image block .tally-block-image
Image caption .tally-image-caption
Embed block .tally-block-embed
Embed video block .tally-block-embed-video
Embed audio block .tally-block-embed-audio
Multiple choice block .tally-block-multiple-choice-option
Multiple choice option .tally-multiple-choice-option
Selected multiple choice option .tally-multiple-choice-option-selected
Multiple choice badge .tally-enumeration-badge
Multiple choice letter badge .tally-alphabet-badge
Multiple choice number badge .tally-number-badge
Checkboxes block .tally-block-checkbox
Checkbox option .tally-checkbox
Selected checkbox option .tally-checkbox-selected
Multi-select block .tally-block-multi-select
Multi-select selected options container .tally-multi-select-selected-options
Multi-select selected option pill .tally-multi-select-selected-option-pill
Multi-select available options container .tally-multi-select-list-options
Multi-select available option .tally-multi-select-list-option
Multi-select available option pill .tally-multi-select-list-option-pill
Dropdown block .tally-block-dropdown
Ranking option block .tally-block-ranking-option
Ranked option .tally-ranking-option-ranked
Ranked option at position .tally-ranking-option-ranked-1, .tally-ranking-option-ranked-2, .tally-ranking-option-ranked-3, etc.
Ranking badge .tally-rank-badge
Short answer block .tally-block-input-text
Number block .tally-block-input-number
Email block .tally-block-input-email
Link block .tally-block-input-link
Phone number block .tally-block-input-phone-number
Date block .tally-block-input-date
Time block .tally-block-input-time
Long answer block .tally-block-textarea
File upload block .tally-block-file-upload
Linear scale block .tally-block-linear-scale
Linear scale option .tally-linear-scale-option
Selected linear scale option .tally-linear-scale-option-selected
Linear scale label .tally-linear-scale-label
Rating block .tally-block-rating
Payment block .tally-block-payment
Signature block .tally-block-signature
reCAPTCHA block .tally-block-captcha
Matrix container .tally-matrix
Matrix column block .tally-block-matrix-column
Matrix row block .tally-block-matrix-row
“Other” option’s input .tally-other-option-input
Tally block by UUID (Universal Unique Identifier) .tally-block-[UUID] (example: .tally-block-2e9cd30c-28e1-4c56-a1ef-d8e945ac103e)