Flat UI buttons

Developer
Size
2,541 Kb
Views
18,216

How do I make an flat ui buttons?

What is a flat ui buttons? How do you make a flat ui buttons? This script and codes were developed by Robert on 08 November 2022, Tuesday.

Flat UI buttons Previews

Flat UI buttons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flat UI buttons</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <input type="submit" value="Save" class="btn" />
<span class="btn btn_gray">Clear Form</span>
<a href="#" class="btn btn_red">Delete</a>
<div class="btn btn_blue">Info</div>
<button class="btn btn_orange"><i>&#8594;</i>Travel at the speed of light</button>
</body>
</html>

Flat UI buttons - Script Codes CSS Codes

html { padding: 50px; font: 14px 'Helvetica', sans-serif;
}
input.btn,
button.btn { font: inherit; border: none; -webkit-appearance: none; appearance: none;
}
.btn { display: inline-block; padding: 10px 30px; border-radius: 3px; color: #fff; text-decoration: none; cursor: pointer; background: #21be21;
}
.btn:hover { box-shadow: 0 -4px #199319 inset;
}
.btn:active { box-shadow: none; padding-bottom: 6px; background: #1fb51f;
}
.btn:active { -webkit-transform: translateY(4px); -moz-transform: translateY(4px); -ms-transform: translateY(4px); transform: translateY(4px);
}
.btn i { display: inline-block; vertical-align: text-top; height: 1em; width: 1em; margin-top: 1px; margin-right: 0.5em; margin-left: -0.5em; font-style: normal; line-height: 1em;
}
.btn_gray { background: #aaa;
}
.btn_gray:hover { box-shadow: 0 -4px #919191 inset;
}
.btn_gray:active { box-shadow: none; padding-bottom: 6px; background: #a5a5a5;
}
.btn_red { background: #be2221;
}
.btn_red:hover { box-shadow: 0 -4px #931a19 inset;
}
.btn_red:active { box-shadow: none; padding-bottom: 6px; background: #b5201f;
}
.btn_blue { background: #3c6e8e;
}
.btn_blue:hover { box-shadow: 0 -4px #2d526a inset;
}
.btn_blue:active { box-shadow: none; padding-bottom: 6px; background: #396887;
}
.btn_orange { background: #E67E22;
}
.btn_orange:hover { box-shadow: 0 -4px #bf6516 inset;
}
.btn_orange:active { box-shadow: none; padding-bottom: 6px; background: #e4791a;
}
Flat UI buttons - Script Codes
Flat UI buttons - Script Codes
Home Page Home
Developer Robert
Username rendro
Uploaded November 08, 2022
Rating 3
Size 2,541 Kb
Views 18,216
Do you need developer help for Flat UI buttons?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Robert (rendro) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!