Bind CSS to Dynamic Data Fields

Hey folks,

I tried to find it, but no luck.

Does anyone know how to bind a CSS class to a dynamic data field? I am wanting to be able to apply specific CSS styles to specific fields.

Cheers

Hi shingen,
welcome to the forum!

Every dynamic data field has a data-field-id. Inspect the frontend with developer tools to get the ID of the specific field.

image

You can target this field with something like:

.dynamic[data-field-id="687bb0"] {
  color: red;
}

Best regards,
timmse

1 Like

Hey Timmse,

Aww, perfect – thank you for that and the quick reply! =)

1 Like