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

CSS Border Style


CSS Tutorial » CSS Border Style

The border-style property sets the style of an element's four borders. for this property we can have from one to four values.

CSS Syntax

border-style: none or hidden or dotted or dashed or solid or double or groove or ridge or inset or outset or initial or inherit;


We can add CSS 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 Border Style - examples


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

Examples:

1. border-style: solid double dotted dashed;
top border is solid
right border is double
bottom border is dotted
left border is dashed

2. border-style: double solid dotted;
top border is double
right and left borders are solid
bottom border is dotted

3. border-style: solid dotted;
top and bottom borders are solid
right and left borders are dotted

4. border-style: dashed;
all four borders are dashed


Example:
Example 1, How to create CSS Border Style - examples:
  <!DOCTYPE html>
<html>
<head>
<title>CSS Border Style - examples - example</title>
<style>
h1 {
color:red;
}
.border1 {
border-style: solid double dotted dashed;
}
.border2 {
border-style: double solid dotted;
}
.border3 {
border-style: solid dotted;
}
.border4 {
border-style: dashed;
}
</style>
</head>
<body>
<h1>CSS Border Style - examples</h1>
<div class="border1">1 You text here: Learn how to create CSS Border Shadow. </div> <br /><br />
<div class="border2">2 You text here: Learn how to create CSS Border Shadow. </div> <br /><br />
<div class="border3">3 You text here: Learn how to create CSS Border Shadow. </div><br /><br />
<div class="border4">4 You text here: Learn how to create CSS Border Shadow. </div><br /><br />
<div style="border-style: double solid dotted">5 I used inline CSS. You text here:
Learn how to create CSS Border Radius. </div>
</body>
</html>


css border style, table, 1px, top, examples, top bottom left right, dashed, mdn, dashed spacing
CSS Border Style - 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.