Form layout issues | Community
Skip to main content
Level 3
Mar 30, 2023 7:30 PM UTC
Solved

Form layout issues

Was wondering if anyone has any insight as to why a field on a form is creating styling issues. I cloned a form and when I replace one field with a different value, the layout got skewed. It's a required field, but for some reason they're two asterisks by the field and I can't see why (see screenshot)

 

We have custom head HTML in the meta and js footer script on the landing page to help with the form styling in general and it usually does the trick . Wondering if it's the page or if the form is the issue. 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Mar 31, 2023 12:55 AM UTC

You‘re hiding the native asterisk container and adding your own via a pseudo-element:

.mktoRequiredField label:after { content:"*"; margin-left:2px } .mktoAsterix { display:none!important }

 

You probably meant to have that only apply to non-empty labels:

.mktoRequiredField label:not(:empty)::after {

 

3 replies

SanfordWhiteman
Level 10
Mar 30, 2023 8:19 PM UTC
We'd need to see the actual page.
Translate
Level 3
Mar 30, 2023 10:56 PM UTC
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Mar 31, 2023 12:55 AM UTC

You‘re hiding the native asterisk container and adding your own via a pseudo-element:

.mktoRequiredField label:after { content:"*"; margin-left:2px } .mktoAsterix { display:none!important }

 

You probably meant to have that only apply to non-empty labels:

.mktoRequiredField label:not(:empty)::after {

 

Translate