In the Infor CRM web client, quick forms render controls inside of a div. The div is where a lot of the visual attributes are, like how a control’s label spans 40% of the overall width. There is no direct way to manipulate this server side since the divs do not contain IDs. Even doing it client side can’t be done directly without an ID. There is a way to handle this though by using jquery and getting the control’s parent, which is the div it site in. From there you can then manipulate the div to change its style.
Doing it this way is for one off cases. If you want to handle this on a more global method a custom css would be the way to go.
Here is code that you can add to a quick form’s load action to inject client side code into the form that manipulates a server control’s parent div. In this case the control I am using is a label called QFLabel3:
string script = "var lbl = $( '#" + QFLabel3.ClientID + "' );"; script += "lbl.parent().css('width', '80%' );"; script += "lbl.parent().css('text-align', 'left');"; script += "lbl.parent().css('margin-left','14px');"; ScriptManager.RegisterStartupScript(Page, GetType(), "myScript", script, true);