How do I align a label and a textarea?

前端 未结 7 1749
傲寒
傲寒 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.

    0 讨论(0)
提交回复
热议问题