Floating icon
-
I’ve tried using the sample CSS you provided on this page:
https://complianz.io/css-lesson-23-your-manage-consent-button-as-floating-widget/Unfortunately, it doesn’t behave as expected. I’ve removed the button label and replaced it with a period (.) as suggested. However:
- The text (.) still appears and doesn’t get hidden.
- The button background appears elliptical, not perfectly circular.
- I want to use a custom SVG icon (
icon.svg) instead of Font Awesome, but it doesn’t align or size properly. - On mobile devices, the styling breaks and the icon does not remain consistent.
Could you please provide an updated, clean CSS snippet that:
- Hides the text completely
- Uses
icon.svginstead of Font Awesome - Renders a perfectly round, floating icon button (60x60px)
- Works well across desktop and mobile
Thank you in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Floating icon’ is closed to new replies.