Treehouse: Grow your CSS skills. Land your dream job.

css textarea

  • # July 30, 2012 at 6:33 am

    Hi guys,
    i have placed a textarea in form of a popup. The problem is when i write inside the textarea the background image sprite of textarea also begin to scroll up on adding content. Anyone have the solution for this?

    # July 30, 2012 at 2:04 pm

    Put the background in the wrapper, make the textarea background color to be transparent:

    .common_wht {background:url('') no-repeat top left;}
    .common_wht textarea {background:transparent;}
    # July 31, 2012 at 2:53 am

    Thanks for your suggestion @Hompimpa but i have kept left curve of background image in wrapper and the right curve image in textarea.

    span.empty_wht.multi_wht{background-position:left -1448px9!important;margin-left:0px9;}

    span.empty_wht.multi_wht textarea{background-position:right -1794px/!important;margin-right:-4px9; background-attachment:fixed;}
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.