Hamzeh Hasan Hamzeh Hasan - 3 months ago 21
HTML Question

Applying CSS styling TOP correctly

I'm kind of new to css styling, so I went by something that I couldn't really express how to solve, I hope that it is clear in the image attached, I just want to put this label on the beside the top of this textarea, could any one please help in this

enter image description here

Answer

The thing you are asking is called vertical-align and in your case i have used vertical-align:top

See fiddle

The vertical-align property sets the vertical alignment of an element. You can read more about vertical-align here and here

HTML

<div>
     <label>Employee Comments</label>
     <textarea></textarea>
</div>

CSS

 label{vertical-align:top;}