How to leave textarea and button side by side?

0

I need to implement a textarea (message) and a button (send) on the right side, but that is liquid (100%), that is, if the window size decreases, the textarea decreases and the button retains its size 60px for example) and always pasted to the right side of the window.

Is it possible?

    
asked by anonymous 27.02.2014 / 20:44

1 answer

2

Can be implemented with calc .

JsFiddle

textarea {
    width: calc(100% - 60px);
}

button {
    position: fixed; right: 0; top: 0;
    width: 60px;
}
    
27.02.2014 / 21:02