I have a button and a textarea:
.text2
{
font-size:15px;
resize:none;
background-color:#FFFFFF;
width:80%;
height:300px;
margin: 5px 0 10px 0;
}
#btn1
{
margin-top: 5px;
margin-bottom: 10px;
}
<textarea id="input1" class="text2" type="text" placeholder="Please enter your writing..." onpropertychange="cop()" oninput="cop()"></textarea>
<button onclick="saveText()" type="button" class="btn btn-primary" id="btn1"><span class="glyphicon glyphicon-folder-close" aria-hidden="true"></span> save as</button>
Now I want to make them align right or left just like this:
How can the run code snippet button and the textarea be aligned left?