I work in solid-js and I would like to add a floating button to the far right of a screen in my application. After reading this article on creating floats in Tailwindcss..., I wrote the following code:
export default function SearchEngine() {
return (
<>
...
<BsChatLeftTextFill size={41} class="float-right text-blue-500 "/>
</>
);
}
This did create a button on the far right of my app, but when I scroll down the tab bar, my button position is influenced by it. In my opinion, given that this is a floating button, the button should remain visible at the far right of my application despite scrolling the page, in its initial position and this is the behavior I expected. I looked on the Tailwindcss documentation, but the property I'm using is indeed the correct property.