@7kasper/ngx-fittext
Version:
**@7kasper/ngx-fittext** is an Angular library that allow you fit text in a box or a line.
6 lines (5 loc) • 321 B
HTML
<div #wrapperDiv [style.width]="width|| '100%'" [style.height]="height" [style.backgroundColor]="'yellow'" style="position: relative;display: block;">
<div #controllerDiv style="display: inline-block;padding: 0;margin: 0;background-color: azure;line-height: 0.75em;">
<ng-content></ng-content>
</div>
</div>