The fast way to create buttons with a flat style.
A simple .css file to add to your site to create button with a flat style.
- First of all include flatbuttons.css in your project
<link type="text/css" rel="stylesheet" href="assets/css/flatbuttons.css" />
- Add the class ".flatButton" to your element (for example a div)
<div class="flatButton">Hey, I'm a button!</div>
- Choose the color and the style of your button.
<div class="flatButton fb-aqua fb-rounded-low">Hey, I'm a button!</div>
Class name | Description |
.fb-rounded-low | Set a 10px border radius. |
.fb-rounded-medium | Set a 20px border radius. |
.fb-rounded-high | Set a 40px border radius. |
.fb-rounded-full | Set a 50% border radius. Usefull for circle button. |
.fb-'color' | Set the color of the button. Check the demo file to see available colors. |
Copyright (c) 2017 Daniele Petrarolo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.