angularjs - Why float-right, float-left don't working properly? -


this snippet code.

<div class="row col-xs-12"> <a *ngfor="let rec of recipe "href="#" class="list-group-item clearfix">     <div class="float-left">         <h4 class="list-group-item-heading">{{rec.name}}</h4>         <p class="list-group-item-text">{{rec.description}}</p>     </div>     <span class="float-right">         <img [src]="rec.imagepath" alt="{{rec.name}}" class="img-responsive" style="max-height: 50px;">     </span> </a> <app-recipe-item></app-recipe-item> 

i wonder why float-right don't align image right side. if use insetead pull-right it's working.i have read bootstrap 4 should float rather pull.

i deleted list-group-item, list-group-item-heading , list-group-item-text , worked.

<a href="#" class="clearfix" *ngfor="let recipe of recipes">         <div class="float-left">             <h4>{{ recipe.name }}</h4>             <p>{{ recipe.description }}</p> 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -