SlideShare a Scribd company logo
3
Most read
4
Most read
6
Most read
Introduction to CSS
Borders - Lesson 4
Publisher : Attitude Academy
Border
The border-color Property
The border-color property allows you to change the color of the
border surrounding an element. You can individually change the
color of the bottom, left, top and right sides of an element's
• Border-bottom-color changes the color of bottom border.
• Border-top-color changes the color of top border.
• Border-left-color changes the color of left border.
• Border-right-color changes the color of right border.
Border
The border-style Property
The border-style property allows you to select one of the following
styles of border:
• None: No border. (Equivalent of border-width:0 ;)
• Solid: Border is a single solid line.
• Dotted: Border is a series of dots.
• Dashed: Border is a series of short lines.
• Double: Border is two solid lines.
• Groove: Border looks as though it is carved into the page.
• Ridge: Border looks the opposite of groove
• Inset: Border makes the box look like it is embedded in the page.
• Outset: Border makes the box look like it is coming out of the
canvas.
• Hidden: Same as none, except in terms of border-conflict
resolution
Border
You can individually change the style of the bottom, left, top, and
right borders of an element using the following properties:
• Border-bottom-style changes the style of bottom border.
• Border-top-style changes the style of top border.
• Border-left-style changes the style of left border.
• Border-right-style changes the style of right border.
Border
The border-width Property
The border-width property allows you to set the width of an element
borders. The value of this property could be either a length in px, pt,
or cm, or it should be set to thin, medium, or thick. You can
individually change the width of the bottom, top, left, and right
borders of an element using the following properties:
• Border-bottom-width changes the width of bottom border.
• Border-top-width changes the width of top border.
• Border-left-width changes the width of left border.
• Border-right-width changes the width of right border
The following example shows all these border property:
<p style="border-width:4px; border-style: dash; border-
color: #093;>
This example show all these border property
</p>
<p style="border-width:4px; border-style: dash; border-
color: #093;>
This example show all these border property
</p>
Example Here:
This example show all these border property
Border
Border Properties Using Shorthand
The border property allows you to specify color, style, and width of
lines in one property: The following example shows how to use all
the three properties into a single property. This is the most
frequently used property to set border around any element.
<p style="border:2px solid #093;>
This example show all shorthand property
</p>
<p style="border:2px solid #093;>
This example show all shorthand property
</p>
Example Here:
This example show all shorthand property
Visit Us : Attitude Academy
Visit Us : Attitude Academy

More Related Content

What's hot (20)

PPT
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
PPTX
Css animation
Aaron King
 
PPTX
Html images
Denni Domingo
 
PDF
CSS3 Media Queries
Russ Weakley
 
PPTX
Css Text Formatting
Dr. Jasmine Beulah Gnanadurai
 
PPT
Advanced Cascading Style Sheets
fantasticdigitaltools
 
PPTX
Introduction to CSS
Folasade Adedeji
 
PPTX
html-css
Dhirendra Chauhan
 
PPTX
CSS Positioning and Features of CSS3
Jaimin Brahmbhatt
 
PPTX
CSS - Text Properties
hstryk
 
PPT
CSS for Beginners
Amit Kumar Singh
 
PPTX
Html coding
Briana VanBuskirk
 
PPSX
Javascript variables and datatypes
Varun C M
 
PDF
Basic-CSS-tutorial
tutorialsruby
 
PDF
CSS3, Media Queries, and Responsive Design
Zoe Gillenwater
 
PPT
CSS ppt
Sanmuga Nathan
 
PPTX
Css backgrounds
AbhishekMondal42
 
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Css animation
Aaron King
 
Html images
Denni Domingo
 
CSS3 Media Queries
Russ Weakley
 
Css Text Formatting
Dr. Jasmine Beulah Gnanadurai
 
Advanced Cascading Style Sheets
fantasticdigitaltools
 
Introduction to CSS
Folasade Adedeji
 
CSS Positioning and Features of CSS3
Jaimin Brahmbhatt
 
CSS - Text Properties
hstryk
 
CSS for Beginners
Amit Kumar Singh
 
Html coding
Briana VanBuskirk
 
Javascript variables and datatypes
Varun C M
 
Basic-CSS-tutorial
tutorialsruby
 
CSS3, Media Queries, and Responsive Design
Zoe Gillenwater
 
Css backgrounds
AbhishekMondal42
 

Similar to Introduction to CSS Borders - Lesson 4 (20)

PDF
Border
Ankit Dubey
 
PPTX
cascading style sheets explaining about borders
Hshhdvrjdnkddb
 
PPTX
Web Engineering - Basic CSS Properties
Nosheen Qamar
 
PPTX
06. session 06 css color_andlayoutpropeties
Phúc Đỗ
 
PDF
Dimensions of elements.pdf
Kongu Engineering College, Perundurai, Erode
 
PDF
Web Design Course: CSS lecture 3
Gheyath M. Othman
 
PPTX
Web Development.pptx
MuhammadAhmad348140
 
PPTX
Chapter 14: Box Model
Steve Guinan
 
PPTX
Unit - 3 CSS(Cascading Style Sheet).pptx
kushwahanitesh592
 
PPTX
CSS Box Model
kjkleindorfer
 
PPTX
The Box Model [CSS Introduction]
Nicole Ryan
 
PPTX
Borders in CSS Borders in CSS border color border radius border style and b...
sabahjutt880
 
PDF
Pruebas mostrando pdf's
recepcioncedir
 
PPTX
Lecture 6.pptx..........................
salmannawaz6566504
 
PPTX
CSS tutorial chapter 2
jeweltutin
 
DOCX
INTERNET PROGRAMMING UNIT I REMAINING -SECOND HALF.docx
psaranya21
 
PPTX
Css presentation lecture 4
Mudasir Syed
 
PPTX
Unit-3-CSS-BWT.pptx
Tanu524249
 
PPTX
Css outlines
AbhishekMondal42
 
Border
Ankit Dubey
 
cascading style sheets explaining about borders
Hshhdvrjdnkddb
 
Web Engineering - Basic CSS Properties
Nosheen Qamar
 
06. session 06 css color_andlayoutpropeties
Phúc Đỗ
 
Web Design Course: CSS lecture 3
Gheyath M. Othman
 
Web Development.pptx
MuhammadAhmad348140
 
Chapter 14: Box Model
Steve Guinan
 
Unit - 3 CSS(Cascading Style Sheet).pptx
kushwahanitesh592
 
CSS Box Model
kjkleindorfer
 
The Box Model [CSS Introduction]
Nicole Ryan
 
Borders in CSS Borders in CSS border color border radius border style and b...
sabahjutt880
 
Pruebas mostrando pdf's
recepcioncedir
 
Lecture 6.pptx..........................
salmannawaz6566504
 
CSS tutorial chapter 2
jeweltutin
 
INTERNET PROGRAMMING UNIT I REMAINING -SECOND HALF.docx
psaranya21
 
Css presentation lecture 4
Mudasir Syed
 
Unit-3-CSS-BWT.pptx
Tanu524249
 
Css outlines
AbhishekMondal42
 
Ad

Recently uploaded (20)

PDF
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PPTX
grade 8 week 2 ict.pptx. matatag grade 7
VanessaTaberlo
 
PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PDF
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
PDF
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
PDF
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
PPTX
Connecting Linear and Angular Quantities in Human Movement.pptx
AngeliqueTolentinoDe
 
PPTX
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PPTX
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
PDF
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
PPTX
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
PDF
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
grade 8 week 2 ict.pptx. matatag grade 7
VanessaTaberlo
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
Connecting Linear and Angular Quantities in Human Movement.pptx
AngeliqueTolentinoDe
 
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
Ad

Introduction to CSS Borders - Lesson 4

  • 1. Introduction to CSS Borders - Lesson 4 Publisher : Attitude Academy
  • 2. Border The border-color Property The border-color property allows you to change the color of the border surrounding an element. You can individually change the color of the bottom, left, top and right sides of an element's • Border-bottom-color changes the color of bottom border. • Border-top-color changes the color of top border. • Border-left-color changes the color of left border. • Border-right-color changes the color of right border.
  • 3. Border The border-style Property The border-style property allows you to select one of the following styles of border: • None: No border. (Equivalent of border-width:0 ;) • Solid: Border is a single solid line. • Dotted: Border is a series of dots. • Dashed: Border is a series of short lines. • Double: Border is two solid lines. • Groove: Border looks as though it is carved into the page. • Ridge: Border looks the opposite of groove • Inset: Border makes the box look like it is embedded in the page. • Outset: Border makes the box look like it is coming out of the canvas. • Hidden: Same as none, except in terms of border-conflict resolution
  • 4. Border You can individually change the style of the bottom, left, top, and right borders of an element using the following properties: • Border-bottom-style changes the style of bottom border. • Border-top-style changes the style of top border. • Border-left-style changes the style of left border. • Border-right-style changes the style of right border.
  • 5. Border The border-width Property The border-width property allows you to set the width of an element borders. The value of this property could be either a length in px, pt, or cm, or it should be set to thin, medium, or thick. You can individually change the width of the bottom, top, left, and right borders of an element using the following properties: • Border-bottom-width changes the width of bottom border. • Border-top-width changes the width of top border. • Border-left-width changes the width of left border. • Border-right-width changes the width of right border The following example shows all these border property:
  • 6. <p style="border-width:4px; border-style: dash; border- color: #093;> This example show all these border property </p> <p style="border-width:4px; border-style: dash; border- color: #093;> This example show all these border property </p> Example Here: This example show all these border property
  • 7. Border Border Properties Using Shorthand The border property allows you to specify color, style, and width of lines in one property: The following example shows how to use all the three properties into a single property. This is the most frequently used property to set border around any element.
  • 8. <p style="border:2px solid #093;> This example show all shorthand property </p> <p style="border:2px solid #093;> This example show all shorthand property </p> Example Here: This example show all shorthand property
  • 9. Visit Us : Attitude Academy
  • 10. Visit Us : Attitude Academy