- Saved searches
- Use saved searches to filter your results more quickly
- License
- sirakoff/css3-buttons
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- How to make a input submit button with flat look?
- 4 Answers 4
- Related
- Hot Network Questions
- Subscribe to RSS
- 25 Best Free CSS Flat Buttons That You Can Use In 2023
- 1. Hover/ Focus Effect
- 2. Only CSS: Usually Button
- 3. CSS Buttons!!
- 4. Animated Ghost Button
- 5. Animated Rainbow Button
- 6. Hover Over Me Button
- 7. Animal Crossing Inspired Hover
- 8. Shiny Button
- 9. Flat Buttons With Smooth Hover Effect
- 10. Material Design Flat Button
- 11. Flat Layered Button
- 12. 5 Very Simple Hover Effects
- 13. Pure CSS 3D Flip Buttons
- 14. Flat Buttons
- 15. Colorful Flex Buttons
- 16. Button Hover Effect
- 17. Animated CSS3 Buttons
- 18. Stretchy Button
- 19. Flat & Shiny Button (Hover Effect)
- 20. Hover Buttons Effect
- 21. Button Hover Animation
- 22. Flat Buttons’ Psuedo Striped Shadows
- 23. Simple Artistic Button
- 24. Fancy CSS Button
- 25. 12 Fancy Buttons
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Flat buttons built from css3
License
sirakoff/css3-buttons
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Flat buttons built from css3.
Move font-awesome.min.css and buttons.min.css to your css folder and dropdown.js to your js folder. Leave the fonts folder in the root of your website.
Include buttons.min.css in the head of your html page
link rel pl-s">stylesheet" href pl-s">css/buttons.min.css">
and dropdown.js in the footer after jquery
script src pl-s">js/dropdown.js">script>
In order to use the default button add the classes btn and default to any appropriate element
a href="" class pl-s">btn default">Buttona> button class pl-s">btn default">Buttonbutton> input type pl-s">submit" class pl-s">btn default" value pl-s">Submit">
The buttons framework support 20 colors listed at http://flatuicolors.com/
To use the colored buttons simply add the color name to class
a href pl-s">#" class pl-s">btn turcuoise rd">Turcuoisea> a href="" class pl-s">btn emerald">Emeralda> a href pl-s">#" class pl-s">btn peter_river">Peter Rivera> a href pl-s">#" class pl-s">btn amethyst">Amethysta> a href pl-s">#" class pl-s">btn wet_asphalt">Wet Asphalta> a href pl-s">#" class pl-s">btn green_sea">Green Seaa> a href pl-s">#" class pl-s">btn nephritis">Nephritisa> a href pl-s">#" class pl-s">btn belize_hole">Belize Holea> a href pl-s">#" class pl-s">btn wisteria">Wisteriaa> a href pl-s">#" class pl-s">btn midnight_blue">Midnight Bluea> a href pl-s">#" class pl-s">btn sunflower">Sunflowera> a href pl-s">#" class pl-s">btn carrot">Carrota> a href pl-s">#" class pl-s">btn alizarin">Alizarina> a href pl-s">#" class pl-s">btn clouds">Cloudsa> a href pl-s">#" class pl-s">btn concrete">Concretea> a href pl-s">#" class pl-s">btn orange">Orangea> a href pl-s">#" class pl-s">btn pumkin">Pumkina> a href pl-s">#" class pl-s">btn pomegranate">Pomegranatea> a href pl-s">#" class pl-s">btn silver">Silvera> a href pl-s">#" class pl-s">btn asbestos">Asbestoa>
You can use the the classes lg , sm , xs for large,small and extra small respectively
a href="" class pl-s">btn default lg">Buttona> a href="" class pl-s">btn default sm">Buttona> a href="" class pl-s">btn default xs">Buttona>
For round buttons simply add the class rd to the button element
a href="" class pl-s">btn default rd">Buttona>
To use the 3D buttons simply add -3d to the button’s color class
a href pl-s">#" class pl-s">btn turcuoise-3d">Turcuoisea>
Dropdown with bootstrap’s dropdown plugin
div class pl-s">dropdown"> button data-toggle pl-s">dropdown" class pl-s">btn default">Dropdown trigger b class pl-s">caret">b>button> ul class pl-s">dropdown-menu" role pl-s">menu" aria-labelledby pl-s">dLabel"> . ul> div>
Icons — Iconic Font by Font Awesome
The buttons framework uses the Font Awesome. To add icons to the button add Check out a full list of available icons and their class at http://fontawesome.io/icons/
button class pl-s">btn asbestos">i class pl-s">fa fa-icon-name">i>Buttonbutton>
If you are adding the icon before the button text add class left to the i element
button class pl-s">btn asbestos">i class pl-s">fa fa-icon-name left">i>Buttonbutton>
If you are adding the icon after the button text add class right to the i element
button class pl-s">btn asbestos">Buttoni class pl-s">fa fa-icon-name right">i>button>
How to make a input submit button with flat look?
And I want to add some additional styles to make it a flat look:
This is how it looks afterwards: However, if you look carefully, there is still some border on the top of the submit button. Is there some way to remove the sunken or raised surface and make it a plain flat look?
In standard html/css, your code would make the button flat. I think there are other rules applied on this input.
4 Answers 4
You will need to set border, box-shadow and background to 0/none to remove any greyish appearance as seen on button. Then to remove the rounded corners set border-radius to 0px.
input[type="submit"] /* Or better yet try giving an ID or class if possible*/
outline: none; would be my first guess.
And also you would probably want to remove the :focus state and :hover state as so
input[type="submit"]:focus < background:none; outline: none; border:none; >input[type="submit"]:hover
this makes it so when it is pressed, it won’t have an emphasized outline.
if it doesn’t work try removing other styles such as box-shadow:none; , border-radius:none; .
I see that the button corners are rounded. Maybe this is caused by other styles that affecting it. Try to remove the border-radius like this:
If that didn’t solve the issue, then you need to check what style that is adding the top border. You can try using CSS !important with the border declaration(not recommended btw) :
Even though outline isn’t a browser default (AFAIK), in Bootstrap (if your’e using it or another simular framework) outline is applied even though it’s not showing in computed style. I’m still looking for that question concerning that. Btw, I didn’t add border-radius because I figure you might want rounded corners, and it shouldn’t be a problem.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.27.43548
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
25 Best Free CSS Flat Buttons That You Can Use In 2023
CSS flat buttons are an essential element of any modern website design. They provide an elegant and user-friendly way to navigate a website, and they can be used to create stunning visual effects.
With the advancement of technology, more and more free HTML and CSS flat buttons are becoming available in the market.
In this article, we will discuss 25 of the best free CSS flat buttons that you can use in 2023. We will also talk about their features, advantages and use cases so that you can make an informed decision when selecting one for your website.
So undoubtedly let’s get to the list.
1. Hover/ Focus Effect
Hover/ Focus Effect
Made By: Ana Tudor
2. Only CSS: Usually Button
Only CSS: Usually Button
Made By: Yusuke Nakaya
3. CSS Buttons!!
4. Animated Ghost Button
Animated Ghost Button
Made By: Cameron
5. Animated Rainbow Button
Animated Rainbow Button
Made By: lemmin
6. Hover Over Me Button
Hover Over Me Button
Made By: Harmandeep Singh
7. Animal Crossing Inspired Hover
Animal Crossing Inspired Hover
Made By: Sarah Fossheim
8. Shiny Button
Shiny Button
Made By: Antonio
9. Flat Buttons With Smooth Hover Effect
Flat Buttons With Smooth Hover Effect
Made By: Silvestar Bistrović
10. Material Design Flat Button
Material Design Flat Button
Made By: Andrew
11. Flat Layered Button
Flat Layered Button
Made By: Dronca Raul
12. 5 Very Simple Hover Effects
5 Very Simple Hover Effects
Made By: Mark Mead
13. Pure CSS 3D Flip Buttons
Pure CSS 3D Flip Buttons
Made By: Josh Shor
14. Flat Buttons
Flat Buttons
Made By: Benjamin Vilina
15. Colorful Flex Buttons
Colorful Flex Buttons
Made By: 0guzhan
16. Button Hover Effect
Button Hover Effect
Made By: Comehope
17. Animated CSS3 Buttons
Animated CSS3 Buttons
Made By: Sazzad
18. Stretchy Button
Stretchy Button
Made By: Katherine Kato
19. Flat & Shiny Button (Hover Effect)
Flat & Shiny Button (Hover Effect)
Made By: Nate Watson
20. Hover Buttons Effect
Hover Buttons Effect
Made By: januaryofmine
21. Button Hover Animation
Button Hover Animation
Made By: Danil Goncharenko
22. Flat Buttons’ Psuedo Striped Shadows
Flat Buttons’ Psuedo Striped Shadows
Made By: Dan Powell
23. Simple Artistic Button
Simple Artistic Button
Made By: Mark Mead
24. Fancy CSS Button
Fancy CSS Button
Made By: Waterproof Web Wizard
25. 12 Fancy Buttons
12 Fancy Buttons
Made By: bartekd