SlideShare a Scribd company logo
Unit III: Adding Styles
and Interactivity Using
 CSS and Javascript
 When point moves it was then known
  as_______?
 What line is used to show the outline part
  of an object when drawn?
 What is the longest border in the world?
 Which of the following letter is solid, and
  which is outlined.


a.   R                 b .R
The CSS border properties
 specify the borders around
 an element.
The CSS outline properties
 specify the outline around
 an element.
PR0PERTY               DESCRIPTION                        EXAMPLE
border-style    Sets the width of borders/outline    h1{border-style: solid;}
outline style   to dotted, dashed, solid,            h1{outline-style:
                double, groove, ridge, inset,        dashed;}
                outset or none.
border-width    Sets the width of borders to thin,   body{border-style:
outline-width   medium, thick or any numeric         dashed; border-width:
                value in pixels, like 20px           thick;}
                                                     body{outline-style:
                                                     dashed; outline-width:
                                                     thick;}

border-color    Defines the color of the border      h1{border-style: dotted;
outline-color   (the borders should be set first     border-width: thin;
                using the border-style property)     border-color: red;}
                                                     h1{outline-style: dotted;
                                                     outline-width: thin;
                                                     outline-color: red;}
border          Sets all the border/outline          h1{border: medium
outline         properties in one declaration.       ridge, blue;}
                                                     h1{outline: medium,
                                                     ridge, blue;}
PROPERTIES            DESCRIPTION                           EXAMPLE
Border-top-style      Sets the style, width, color of the   h1{border-top-style: dotted;}
Border-top-width      top border.                           h1{border-top-width: thin;}
Border-top-color                                            h1{border-top-color: blue;}
                      Sets the properties of the top
                                                            h1{border-top: thin dotted blue;}
                      border in one declaration
Border-top

Border-right-style    Sets the style, width, color of the   h1{border-right-style: dotted;}
Border-right-width    right border.                         h1{border-right-width: thin;}
Border-right-color                                          h1{border-right-color: blue;}
                      Sets the properties of the right
Border-right                                                h1{border-right: thin dotted blue;}
                      border in one declaration

Border-bottom-style   Sets the style, width, color of the   h1{border-bottom-style: dotted;}
Border-bottom-        bottom border.                        h1{border-bottom-width: thin;}
width                                                       h1{border-bottom-color: blue;}
                      Sets the properties of the bottom
Border-bottom-                                              h1{border-bottom: thin dotted
                      border in one declaration
color                                                       blue;}
Border-bottom

Border-left-style     Sets the style, width, color of the   h1{border-left-style: dotted;}
Border-left-width     left border.                          h1{border-left-width: thin;}
Border-left-color                                           h1{border-left-color: blue;}
                      Sets the properties of the left
Border-left                                                 h1{border-left: thin dotted blue;}
                      border in one declaration
Syntax
        border-image: source slice width outset repeat;


Value              Description
border-image-      The path to the image to be used as a border
source
border-image-slice The inward offsets of the image-border
border-image-      The widths of the image-border
width
border-image-      The amount by which the border image area extends
outset             beyond the border box
border-image-      Whether the image-border should be repeated,
repeat             rounded or stretched
Text-shadow properties: CSS3
  Syntax
  p{text-shadow: 2px 2px 8px red;}
    Value                      Description
h-shadow    Required. The position of the horizontal shadow.
            Negative values are allowed
v-shadow    Required. The position of the vertical shadow.
            Negative values are allowed
blur        Optional. The blur distance

color       Optional. The color of the shadow. Look at CSS
            Color Values for a complete list of possible color
            values
1.  Set thin borders to header 1.
2. Set green border to header 1
3. Set a 30 pixels size of border to header 1.
4. Set a solid border to a paragraph.
5. Set a thick top border to a paragraph.
6. Set a red left border in header 2.
7. Set a dotted right border in a paragraph.
8. Set a blue outline to header 1
9. Set an outset border in a header 2.
10. Set a green bottom border in a
    paragraph
1.    h1{border-width: thin;}
2.    h1{border-color: green;}
3.    h1{border-width: 30px;}
4.    p{border-style: solid;}
5.    p{border-top-width: thick;}
6.    h2{border-left-color: red;}
7.    p{border-right-style: dotted;}
8.    h1{outline-color: blue;}
9.    h2{border-style: outset;}
10.   p{border-bottom-color: green;}

More Related Content

PPTX
Designing web pages html forms and input
PPTX
Javascript comparison and logical operators
PPTX
Css external style sheet
PPTX
Id and class selector
PPT
Web browser, linux, bit & bytes, files
PPT
Picasa&gimp v2.0
PPTX
Javascript event handler
PPTX
Designing web page marquee and img tag
Designing web pages html forms and input
Javascript comparison and logical operators
Css external style sheet
Id and class selector
Web browser, linux, bit & bytes, files
Picasa&gimp v2.0
Javascript event handler
Designing web page marquee and img tag

Similar to Css border and outline properties (20)

PDF
Web Design Course: CSS lecture 3
DOCX
Css dreamweaver
PPTX
Unit - 3 CSS(Cascading Style Sheet).pptx
PDF
Border
PPTX
Unit-3-CSS-BWT.pptx
PPTX
Css borders
PPTX
Web - CSS 1.pptx
PPTX
cascading style sheets explaining about borders
PDF
HTML ,CSS ,JQuery Cheat Sheet
PPTX
Chapter 14: Box Model
PPTX
CSS Topic wise Short notes ppt by Navya.E
PPTX
Less css
PPTX
CSS Box Model
PDF
PPTX
CSS Presentation Notes.pptx
Web Design Course: CSS lecture 3
Css dreamweaver
Unit - 3 CSS(Cascading Style Sheet).pptx
Border
Unit-3-CSS-BWT.pptx
Css borders
Web - CSS 1.pptx
cascading style sheets explaining about borders
HTML ,CSS ,JQuery Cheat Sheet
Chapter 14: Box Model
CSS Topic wise Short notes ppt by Navya.E
Less css
CSS Box Model
CSS Presentation Notes.pptx
Ad

More from Jesus Obenita Jr. (20)

PPTX
Organization and management 3 a Evolution of Management Theory
PPTX
Organization and management 2 Management Function
PPTX
Organization and management 1
PPTX
Ms excel 2013 formatting worksheets
PPTX
Ms excel 2013 data management
PPTX
Microsoft Excel introduction
PPTX
Word 2013 working with pictures
PPTX
Word 2013 Formatting Page
PPTX
Word 2013 8
PPTX
Ms word 2013 7
PPTX
Ms word 2013 6
PPTX
Ms word 2013 4
PPTX
Ms word 2013 2
PPTX
Ms word 2013
PPTX
Parts of the ms word 2013 screen and
PPTX
Word processor
PPT
Session 2 test construction.mt's
PPTX
Cooking ingredients
PPTX
Color theory
PPTX
Computer software
Organization and management 3 a Evolution of Management Theory
Organization and management 2 Management Function
Organization and management 1
Ms excel 2013 formatting worksheets
Ms excel 2013 data management
Microsoft Excel introduction
Word 2013 working with pictures
Word 2013 Formatting Page
Word 2013 8
Ms word 2013 7
Ms word 2013 6
Ms word 2013 4
Ms word 2013 2
Ms word 2013
Parts of the ms word 2013 screen and
Word processor
Session 2 test construction.mt's
Cooking ingredients
Color theory
Computer software
Ad

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
RMMM.pdf make it easy to upload and study
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Cell Types and Its function , kingdom of life
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
A systematic review of self-coping strategies used by university students to ...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
O7-L3 Supply Chain Operations - ICLT Program
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Module 4: Burden of Disease Tutorial Slides S2 2025
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

Css border and outline properties

  • 1. Unit III: Adding Styles and Interactivity Using CSS and Javascript
  • 2.  When point moves it was then known as_______?  What line is used to show the outline part of an object when drawn?  What is the longest border in the world?  Which of the following letter is solid, and which is outlined. a. R b .R
  • 3. The CSS border properties specify the borders around an element. The CSS outline properties specify the outline around an element.
  • 4. PR0PERTY DESCRIPTION EXAMPLE border-style Sets the width of borders/outline h1{border-style: solid;} outline style to dotted, dashed, solid, h1{outline-style: double, groove, ridge, inset, dashed;} outset or none. border-width Sets the width of borders to thin, body{border-style: outline-width medium, thick or any numeric dashed; border-width: value in pixels, like 20px thick;} body{outline-style: dashed; outline-width: thick;} border-color Defines the color of the border h1{border-style: dotted; outline-color (the borders should be set first border-width: thin; using the border-style property) border-color: red;} h1{outline-style: dotted; outline-width: thin; outline-color: red;} border Sets all the border/outline h1{border: medium outline properties in one declaration. ridge, blue;} h1{outline: medium, ridge, blue;}
  • 5. PROPERTIES DESCRIPTION EXAMPLE Border-top-style Sets the style, width, color of the h1{border-top-style: dotted;} Border-top-width top border. h1{border-top-width: thin;} Border-top-color h1{border-top-color: blue;} Sets the properties of the top h1{border-top: thin dotted blue;} border in one declaration Border-top Border-right-style Sets the style, width, color of the h1{border-right-style: dotted;} Border-right-width right border. h1{border-right-width: thin;} Border-right-color h1{border-right-color: blue;} Sets the properties of the right Border-right h1{border-right: thin dotted blue;} border in one declaration Border-bottom-style Sets the style, width, color of the h1{border-bottom-style: dotted;} Border-bottom- bottom border. h1{border-bottom-width: thin;} width h1{border-bottom-color: blue;} Sets the properties of the bottom Border-bottom- h1{border-bottom: thin dotted border in one declaration color blue;} Border-bottom Border-left-style Sets the style, width, color of the h1{border-left-style: dotted;} Border-left-width left border. h1{border-left-width: thin;} Border-left-color h1{border-left-color: blue;} Sets the properties of the left Border-left h1{border-left: thin dotted blue;} border in one declaration
  • 6. Syntax border-image: source slice width outset repeat; Value Description border-image- The path to the image to be used as a border source border-image-slice The inward offsets of the image-border border-image- The widths of the image-border width border-image- The amount by which the border image area extends outset beyond the border box border-image- Whether the image-border should be repeated, repeat rounded or stretched
  • 7. Text-shadow properties: CSS3 Syntax p{text-shadow: 2px 2px 8px red;} Value Description h-shadow Required. The position of the horizontal shadow. Negative values are allowed v-shadow Required. The position of the vertical shadow. Negative values are allowed blur Optional. The blur distance color Optional. The color of the shadow. Look at CSS Color Values for a complete list of possible color values
  • 8. 1. Set thin borders to header 1. 2. Set green border to header 1 3. Set a 30 pixels size of border to header 1. 4. Set a solid border to a paragraph. 5. Set a thick top border to a paragraph. 6. Set a red left border in header 2. 7. Set a dotted right border in a paragraph. 8. Set a blue outline to header 1 9. Set an outset border in a header 2. 10. Set a green bottom border in a paragraph
  • 9. 1. h1{border-width: thin;} 2. h1{border-color: green;} 3. h1{border-width: 30px;} 4. p{border-style: solid;} 5. p{border-top-width: thick;} 6. h2{border-left-color: red;} 7. p{border-right-style: dotted;} 8. h1{outline-color: blue;} 9. h2{border-style: outset;} 10. p{border-bottom-color: green;}