This is HTML
.item p {
display: inline-block;
padding: 5px;
font-size: 15px;
}
.item p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 15ch;
vertical-align: middle !important;
}
<div class="item">
<img src="image.png">
<p>short namne</p>
<p>price</p>
</div>
<div class="item">
<img src="image.png">
<p>long name long name long name</p>
</div>
I want the last one will be very right always and the 2nd will be in the middle and the first one will always be left.
currently this is only in line positioned in inline, no align ment. i want alight left, center, right
like i want:
img short name price
but current it showing like this but i dont want like ths:
img short name price
can anyone help to get it done?