Currently, I am utilizing Angular4+.
I am looking to dynamically resize a div vertically, but I am unsure of how to go about it. I am uncertain about where to even begin and how to accomplish this task without resorting to using jQuery. Are there any suggestions or solutions to achieve this using Angular's functionality?
.textarea {
min-height: 150px;
border:1px solid #ddd;
padding:15px;
position:relative;
}
.textarea::before{
content: '';
position: absolute;
bottom: 0;
margin-left: -15px;
cursor: s-resize;
height: 9px;
width: 100%;
border-top: 1px solid #f1f1f1;
overflow: hidden;
background-color: #eff0f1;
background-image: url('https://cdn.sstatic.net/Sites/stackoverflow/img/sprites.svg');
background-image: url('https://cdn.sstatic.net/Sites/stackoverflow/img/sprites.svg'),none;
background-position: 210px -364px;
background-size: initial;
background-repeat: no-repeat;
}
<div class="textarea"contenteditable="true">
this is a text area
</div>
For a live example, check out the stackblitz here