Hi,
Can anyone tell me how to use css to line up different types of form controls? Different types seem to behave differently.
I have a textbox, dropdownbox and a button along 1 line across the page. I want to make all of them the same height and vertically align them. Here is my code
Thanks
Can anyone tell me how to use css to line up different types of form controls? Different types seem to behave differently.
I have a textbox, dropdownbox and a button along 1 line across the page. I want to make all of them the same height and vertically align them. Here is my code
Code:
<div> <input name="SearchText" type="text" id="tbxSearchText" style="width:50px;font-size:12px;line-height:19px;" /> <select name="SearchBy" id="ddlSearchBy" style="width:110px;height:19px;font-size:12px;position:relative;bottom:1px;"> <option value="0">Family Name</option> <option value="1">Given Names</option> </select> <input type="submit" name="btnSearch" value="Search" onclick="return checkForm();" id="btnSearch" class="button" style="height:20px;position:relative;line-height:1.1em;"/> </div>
Comment