Inspired from Material APEX theme to have Floating button in my application. But, I also do not want to migrate from Universal Theme. So, following is a simple tweak – which will convert your existing button into a floating button within Universal Theme.
Add following CSS into page header or in theme roller – which ever is your preference to use it.
.float{
z-index:100;
position:fixed;
width:60px;
height:60px;
bottom:40px;
right:40px;
background-color: rgba(55, 76, 139, 0.81);
color:#FFF;
border-radius:50px;
text-align:center;
box-shadow: 2px 2px 3px #999;
}
.my-float{
margin-top:22px;
}
Open your existing button and make following changes
- Set CSS Classes as “float my-float”
- Change Button Template to “Icon”
- Set Icon as “fa-plus”
Hope this helps!
Regards,
Jaydip Bosamiya
jbosamiya@gmail.com
4 Comments
Thanks for the article. How to show different options when hovered on the button similar to Material APEX demo page?
Yes, it is possible and I have done that. I should shortly write blog for same. Stay tuned. Thanks.
Here is post about how to create Floating Action Button.
Thanks Jaydip. You are awesome.