Float right and position absolute doesn’t work together

Use

position:absolute;
right: 0;

No need for float:right with absolute positioning

Also, make sure the parent element is set to position:relative;

Leave a Comment