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

CSS Button Border


CSS Tutorial » CSS Button Border

Use the border CSS property to add a colored border to buttons.

Add CSS Button Border 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
Note: Use external CSS instead.


How to create CSS Button Border - examples


You can try to execute the following code to change CSS Button Border on this page.
If you like a button, you can simply copy the code and paste it on your website.


Example:
Example 1, How to create CSS Button Border - examples:
<!DOCTYPE html>
<html>
<head>
<style>
.button {
color: white;
background-color: #009933; /* Green */
border: none;
padding: 12px 36px;
text-decoration: none;
text-align: center;
display: inline-block;
margin: 4px 4px;
font-size: 18px;
cursor: pointer;
}
.button11 {
color: black;
background-color: white;
border: 3px solid #009900;
}
.button22 {
color: black;
background-color: white;
border: 3px solid #008CBA;
}
.button33 { color: black;
background-color: white;
border: 3px solid #ff0000;
}
.button44 {
color: black;
background-color: white;
border: 3px solid #CCCCCC;
}
.button55 {
background-color: white;
color: black;
border: 3px solid #333333;
}
</style>
</head>
<body>
<h3 align="center">How to make CSS Button Border</h3>
<p align="center">Change CSS Button Border</p>
<p align="center">
<button class="button button11">Green Button Border</button>
<button class="button button22">Blue Button Border</button>
<button class="button button33">Red Button Border</button>
<button class="button button44">Gray Button Border</button>
<button class="button button55">Black Button Border</button>
</p>
</body>
</html>



css button border, size
CSS Button Border - 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.