How can I fix div's size? (I mean .long div
on this codes)
Actually div's size is fixed. but, div's inner text is changing its width.
So, Position of Floating Point of my content is Changing.
I think cause of this problem is flex-end
.
than, What is Best way of this problem with notating content on end of div
?
.parent{
width: 400px;
height: 200px;
display: flex;
}
.long{
width: 80%;
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
}
.short{
width: 20%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
<div class="parent">
<div class="long">
{dynamicNumberNotate}
</div>
<div class="short">
foo
</div>
</div>