I have created a web form application which is displayed in the image provided.
However, when I view the same page in the browser, the output appears completely misaligned despite the designer file being perfect.
The markup for this form is quite lengthy, but it essentially consists of two divs aligned left and right perfectly.
I am using the following CSS styles:
.label, .textbox {
width: 150px;
text-align: left;
float: left;
display: block;
}
.label, .dropdownlist {
width: 150px;
text-align: left;
float: left;
display: block;
}
.label, .dropdownlist {
text-align: left;
float: left;
display: block;
margin-left: 23px;
}
I cannot identify any other relevant factors that could be causing such a misaligned output. Additionally, each control is nested within a ul tag.
Any assistance or advice would be greatly appreciated.