Add html id attribute to elements

Stephan-H

Member
Hi,

It would improve customisability enormously if important html elements were given unique ID attributes. This would make it very easy to address them using CSS. Buttons, input fields, labels etc. could thus be very easily customised.

Thanks,
Stephan
 
Upvote 1

eugenio

Administrator
Staff member
Hi,
for some elements you already have this: for custom buttons you can set an ID, each form field has a unique name. It can definitely be improved, though.

Best,
 

Stephan-H

Member
E.g. to give the standard buttons this style:
Screenshot 2024-02-06 095145.jpg
currently I have to use rather complicated css statements:
CSS:
.save_buttons_container input:nth-child(1) {
  background-color: green;
}
.save_buttons_container input:nth-child(3) {
  background-color: yellow;
  color:black;
}
.save_buttons_container input:nth-child(4) {
  background-color: blue;
}
If the button order changes for any reason this might not work anymore. With IDs it would be persistent and simple.

Thanks,
Stephan
 
Top