I have a fairly simple form that includes a combination of text boxes and select boxes. I am overriding the CSS to ensure a label width of 200px in order to align all of the fields. In Firefox, this works fine. In IE, however, the text boxes are aligned correctly but the select boxes are rendering farther to the left than the text boxes.
I can't see the generated HTML in IE, perhaps because this part of the form is in a partial page.
Any ideas? Thanks.
I can't see the generated HTML in IE, perhaps because this part of the form is in a partial page.
Any ideas? Thanks.
RE: SELECT boxes not aligned in IE
Is there any width setting on the groups or containers?
Can you provide some details of how much the text boxes are positioned to the left?
If you are able to attach a partial screenshot of what is wrong.
When you refere to IE, is there a particular version IE6/7/8/9, as they have different behaviour.
Have you considered using a web developer tool for inspecting the HTML:
1) Firebug of Firefox
3) Developer Tool for IE.
RE: SELECT boxes not aligned in IE
The fields are contained in a layout group that is at the top level of a partial page. The controls in the layout group are oriented vertically, and the width of the group is not specified. The select boxes are aligned about 20px left of the aligned text boxes.
This is seen using IE 8, but not in Firefox. I don't have MS Developer tool loaded on my machine, but I'm trying to get it. Sorry I can't provide a screen shot.
Thanks.
RE: SELECT boxes not aligned in IE
If the width was not set on the label backgrounds then the fields would not align as they would be positioned relative to the width of the labels content. So, the fields would appear staggered. Ths can be desirable in some situations.
My guess is that that the actual widths on the label backgrounds are currently variable. Perhaps some are 200px, some are 150px?
There are a couple of options you could look at:
For aligning a set of vertical fields the second option is the most straight forward.
For further guidance on understanding the HTML generated with various Group/Field settings, consult the following FAQ entry: UI Look and Feel - CSS Design Principles and Templates