Applying CSS to two buttons in the same form

There are two different buttons in the same form and wants to apply different CSS styles to each button and needs assistance with it.

Comments

  • We can define different CSS styles for different buttons without requiring the ID of the form element. Simply create different CSS classes in the CSS file, which we will define for the form in Properties > Style > Style Sheets.

    Then, click on the form elements (in this case, the buttons), and in the properties pane on the right side, navigate to Properties > View > CSS Class. Select the CSS class you want to apply to the form element from the dropdown.

    You can define multiple CSS classes in the CSS file and then assign a separate CSS class to each element.

  • You can also refer the sample CSS file for reference.


Sign In or Register to comment.