How do I align a label and a textarea?

前端 未结 7 1774
傲寒
傲寒 2020-12-04 22:57

My code ends up like:

             XXXXX
             XXXXX
Description: XXXXX

I want:

             XXXXX
Description: XXXX         


        
7条回答
  •  醉梦人生
    2020-12-04 23:44

    Try setting a height on your td elements.

    vertical-align: middle; 
    

    means the element the style is applied to will be aligned within the parent element. The height of the td may be only as high as the text inside.

提交回复
热议问题