Forgive me for asking such a simple question, I\'m new to both HTML and CSS. Is there an easy way to center a textarea? I figured I\'d just try using
textarea{
Set text-align of the element's parent to center, like this:
text-align
center
HTML:
CSS: div { text-align: center; } Here is an example: http://jsfiddle.net/ujzLt/ 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
CSS:
div { text-align: center; }
Here is an example: http://jsfiddle.net/ujzLt/