AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

CSS Button


CSS Tutorial » CSS Button

One of the most frequently asked questions I get is, "How do I create a button?" Buttons have become an inevitable part of front end web page development.

We can add CSS Buttons Style as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css

How to create CSS Button - examples


You can try to execute the following code to change CSS Button on this page.


Example:
Example 1, How to create CSS Button - examples:
        <!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #009900; /* Green */
color: white;
padding: 10px 30px;
text-decoration: none;
text-align: center;
display: inline-block;
font-size: 18px;
margin: 4px 4px;
cursor: pointer;
}
.button22 {background-color: #0033CC;} /* blue */
.button33 {background-color: #FF3300;} /* red */
.button44 {background-color: #CCCCCC; color: red;} /* gray */
.button55 {background-color: #333;} /* black */
</style>
</head>
<body>
<h3>How to make Button Colors</h3>
<p>Change the background color for buttons with background-color property:</p>
<button class="button">Green</button>
<button class="button button22">Blue Button</button>
<button class="button button33">Red Button</button>
<button class="button button44">Gray Button</button>
<button class="button button55">Black Button</button>

</body>
</html>



css button, generator, style, disabled, effects, border, transparent, shadow, design, align, hover effect
CSS Button - css tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.