Saturday, 15 May 2010

jquery - Align a star vertically in the middle to a text area -



jquery - Align a star vertically in the middle to a text area -

right star @ bottom of textarea. how align star in below html vertically middle of textarea.

here html

<table> <tr> <td valign="middle"> <textarea id="txtdescription"></textarea> <span class="star">*</span> </td> </tr> </table>

and style

.star { color: #ff0000; margin: 0 0 0 5px; }

here demo

create new <td> , add together there star:

html

<table> <tr> <td valign="middle"> <textarea id="txtdescription"></textarea> </td> <td> <span class="star">*</span> </td> </tr> </table>

fiddle

jquery html css

No comments:

Post a Comment