How to center a textarea using CSS?

前端 未结 5 2076
长发绾君心
长发绾君心 2021-01-31 08:00

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{
          


        
5条回答
  •  有刺的猬
    2021-01-31 08:37

    
    
    
    
    Untitled Document
    
    
    
    
    

    you wrap your textarea with a div, give it width and then you align it with text-align:center;

提交回复
热议问题