I would like to have an element aligned to the top right of the window. I wrote this:
<div class="container-fluid fixed-top">
<div class="row">
<div class="col-8"><!-- dummy --></div>
<div class="col-4 alert alert-primary">Here I am!</div>
</div>
</div>
The problem is that if I resize the window, the dummy column give an additional vertical space.
I tried to use float-right
, but my div
goes out from its container.
Is there a way just have my alert alert-primary
have a minimum text-width (let's say 20 chars) and being right aligned?