Next time, please insert a working code so that it is easier for us to help you.
Check out this solution.
Instead of using a float (which I do not recommend ... only for a few specific cases) I think that with relative position and absolute is easier for your case.
Resize and look, the “notifications” block is always in the corner at the top right of its container.
, .
: , html 1048105715 divs;)