Styling Forms in CSS - changing Required Fields

Sarah_Greig2
Level 3

Styling Forms in CSS - changing Required Fields

Hi

Does anyone have a snippet of CSS which I can edit to change the out the box Marketo 'Required' Field styling?

Sarah
Tags (1)
3 REPLIES 3
Dory_Viscoglio
Level 10

Re: Styling Forms in CSS - changing Required Fields

.mktoForm .mktoAsterix {
display:none!important;
}

This is what we use in our template to not show the asterisk for required fields. 
Anonymous
Not applicable

Re: Styling Forms in CSS - changing Required Fields

Looking in Chrome and inspecting the element, I'd look at something like:

.mktoForm .mktoRequiredField label.mktoLabel {
  1. (Your CSS)
}
Sarah_Greig2
Level 3

Re: Styling Forms in CSS - changing Required Fields

Great thanks for your help!