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

CSS Border Width


CSS Tutorial » CSS Border Width

The border-width property sets the width of an element four borders. For this property we can have from one to four values.

CSS Syntax

border-width: medium or thin or thick or length or initial or inherit;
Note: Always declare the border-style property before the border-width property

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 Width - examples


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

Examples:

1. border-width: thick medium thin 12px;
top border is thick
right border is medium
bottom border is thin
left border is 12px

2. border-width: thick medium thin;
top border is thick
right and left borders are medium
bottom border is thin

3. border-width: thick thin;
top and bottom borders are thick
right and left borders are thin

4. border-width: medium;
all four borders are medium

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


css border width, not working, animation, order, percentage, and color, percentage width, left, bottom, css border-width top bottom left right
CSS Border Width - 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.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...