I’m trying to style a single field from a form.
I’ve tried with the ID, with the form-field prefix as in the code (with the 0 that appears in the inspector and without it) and it’s not working. Any insight?
Thank you!
the ID that is displayed inside the field settings is not the CSS ID, which is obviously a bug. I’ve added it to the bug tracker. If you take a look at the source code, you will see that the ID is different, so I think your code doesn’t work.
If you style like here in the screenshot on input#form-field-9b42b9 { … } it should definitely work.
It would be best if you just address both IDs so that once the bug is fixed you don’t have to change anything
input#form-field-9b42b9,
input#form-field-c6c0ec {
/* your styles */
}
I tried this:
input#form-field-dxvczi-0,
input#form-field-dxvczi {
font-size: var(–text-xs);
}
with and without the brackets [], without the input#, without the variable, with !important and it didn’t work.
The only way I found was with:
.options-wrapper label {
font-size: var(–text-s) !important;
}
the page is Contact – ADn Solutions, in case there is any interest
Aaaah it’s about the checkbox!
Ok, the zero at the end is the identifier for the first field, -1 would be the second, -2 the third, and so on. Therefore, that’s perfectly ok.
So you just want to change the font size of the checkbox label? Try this: