I'm using Angular to dynamically create buttons, but they are stacking vertically instead of appearing side by side
<div *ngIf="response">
<div *ngFor="let hit of response.hits.hits">
<button class="btn btn-primary" role="button" style="display:inline-block">{{hit._source.keywords[0].keyword}}</button>
</div>
</div>
I've attempted to use style="display:inline-block"
and style="display:inline"
, which both result in the buttons being stacked. Is this behavior related to how *ngFor
functions or is there another CSS property I should consider?