CSS button creator link using html - Stack Overflow
I Built a CSS Button Generator
I Made a CSS Button Generator β Would Love Your Thoughts!
HTML and CSS-only Sharing Buttons Generator
This is fantastic. Thanks so much for putting this together, because assembling these things is always a massive drag. While some people here would rather keep up their cargo cult SEO than use a useful tool, I'm just focusing on building awesome stuff that people will want to share. Thanks again!
More on reddit.comVideos
You need to specify the btn class in your HTML:
<button class="btn">Entry forms</button>
Also, your CSS needs to be inside <style> tags in the <head> section of your HTML.
Update: full code
<html>
<head>
<style type="text/css">
.btn {
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0px;
text-shadow: 0px 0px 0px #666666;
font-family: Arial;
color: #ffffff;
font-size: 38px;
padding: 40px;
text-decoration: none;
}
.btn:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
</style>
</head>
<body>
<button class="btn">Entry forms</button>
</body>
</html>
No problems. You just need to add the class "btn". I added some styles to improve it.
<html>
<head>
<style type="text/css">
button.btn {
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0px;
text-shadow: 0px 0px 0px #666666;
font-family: Arial;
color: #ffffff;
font-size: 38px;
padding: 40px;
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;
}
button.btn:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
</style>
</head>
<body>
<button class="btn">Entry forms</button>
</body>
</html>
Or, to make it even more sure, you can add the code below to all your buttons.
(Note: It will not style the button on hover)
<button style="background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0px;
text-shadow: 0px 0px 0px #666666;
font-family: Arial;
color: #ffffff;
font-size: 38px;
padding: 40px;
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;">Entry forms</button>
Hey everyone! I built a CSS Button Generator to make designing buttons faster and more fun. Instead of tweaking styles manually, you can adjust gradients, animations, hover effects, borders, and more in real-time, then instantly export the HTML & CSS.
I put this together because I kept experimenting with button styles and wanted a smoother workflow. If you're working on a project and need a quick button design, feel free to try it out!
π CSS Button Generator
(Also made an Animated Gradients CSS Generator for smooth gradient animations!)