how to force a textarea to respect padding RRS feed

  • Question

  • Hello I have a text area with width and height set "100%"

    this text area is hosted inside a div with a padding of 5px.

    the annoing thing is that the textarea is as large as the div and does not respect the padding.

    is there any possible solution?

    I want the text area to accupy all the space inside a div but it should respect the padding area.

    Sunday, April 29, 2012 8:01 PM


  • Try this css

    textarea {width:100%;margin:0;padding:0;border:0;overflow:auto;}

    • Marked as answer by marck68 Monday, April 30, 2012 8:55 AM
    Monday, April 30, 2012 8:15 AM