tomouse
Technical User
- Aug 30, 2010
- 50
I feel bad to post what seems to be such a simple question, but I've been trying this for a while and searching and can't find the answer. I have 4 controls (2 textboxes and 2 dropdowns) which I want sit alongside each other on the page with their upper edges vertically aligned. The textboxes are multi-line (4 rows), the dropdowns are just one line high. I want them to look like this:
The controls all sit nicely on the same line, but the dropdown boxes have their lower edge aligned with the lower edge of the multi-line textboxes.
I thought a simple div with the style=vertical-align:top would do this, but it is making no difference. Can someone help me? Seems like it must be a very common requirement.
Code:
--------------- ------ ------ ---------------------
| | | | | | | |
| | ------ ------ | |
| | | |
| | | |
--------------- ----------------------
I thought a simple div with the style=vertical-align:top would do this, but it is making no difference. Can someone help me? Seems like it must be a very common requirement.