If you use CSS attribute selectors you can probably manage without having to add a div or edit the html at all.
If the attributes are generated dynamically you can use * to style any attribute containing a particular string of characters. Usually dynamically generated attributes will have some common characters eg myforminputxyz, inputxyz_myform, thismodinputxyz_name. To target all of those you could use similar to this.
Example any div ID containing inputxyz
border: 1px solid red;
or similar ^ instead of * for any span with a class starting with button_myform eg class='button_myform123'
border: 1px solid #f80b03;
You can add a custom .css file if you prefer not to hack the original files to safeguard for future updates.