SlideShare a Scribd company logo
1 of 9
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

Similar to Css border and outline properties

Similar to Css border and outline properties (14)

Css
CssCss
Css
 
Chapter 14: Box Model
Chapter 14: Box ModelChapter 14: Box Model
Chapter 14: Box Model
 
Css properties
Css propertiesCss properties
Css properties
 
Pres
PresPres
Pres
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
 
Css font properties
Css font propertiesCss font properties
Css font properties
 
Border
BorderBorder
Border
 
Css3
Css3Css3
Css3
 
Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4
 
Estilos Css
Estilos CssEstilos Css
Estilos Css
 
csscheatsheet.pdf
csscheatsheet.pdfcsscheatsheet.pdf
csscheatsheet.pdf
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
 

More from Jesus Obenita Jr.

More from Jesus Obenita Jr. (20)

Organization and management 3 a Evolution of Management Theory
Organization and management 3 a Evolution of Management TheoryOrganization and management 3 a Evolution of Management Theory
Organization and management 3 a Evolution of Management Theory
 
Organization and management 2 Management Function
Organization and management 2 Management FunctionOrganization and management 2 Management Function
Organization and management 2 Management Function
 
Organization and management 1
Organization and management 1Organization and management 1
Organization and management 1
 
Ms excel 2013 formatting worksheets
Ms excel 2013 formatting worksheetsMs excel 2013 formatting worksheets
Ms excel 2013 formatting worksheets
 
Ms excel 2013 data management
Ms excel 2013 data managementMs excel 2013 data management
Ms excel 2013 data management
 
Microsoft Excel introduction
Microsoft Excel introductionMicrosoft Excel introduction
Microsoft Excel introduction
 
Word 2013 working with pictures
Word 2013 working with picturesWord 2013 working with pictures
Word 2013 working with pictures
 
Word 2013 Formatting Page
Word 2013 Formatting PageWord 2013 Formatting Page
Word 2013 Formatting Page
 
Word 2013 8
Word 2013 8Word 2013 8
Word 2013 8
 
Ms word 2013 7
Ms word 2013 7Ms word 2013 7
Ms word 2013 7
 
Ms word 2013 6
Ms word 2013 6Ms word 2013 6
Ms word 2013 6
 
Ms word 2013 4
Ms word 2013 4Ms word 2013 4
Ms word 2013 4
 
Ms word 2013 2
Ms word 2013 2Ms word 2013 2
Ms word 2013 2
 
Ms word 2013
Ms word 2013Ms word 2013
Ms word 2013
 
Parts of the ms word 2013 screen and
Parts of the ms word 2013 screen andParts of the ms word 2013 screen and
Parts of the ms word 2013 screen and
 
Word processor
Word processorWord processor
Word processor
 
Session 2 test construction.mt's
Session 2   test construction.mt'sSession 2   test construction.mt's
Session 2 test construction.mt's
 
Cooking ingredients
Cooking ingredientsCooking ingredients
Cooking ingredients
 
Color theory
Color theoryColor theory
Color theory
 
Computer software
Computer softwareComputer software
Computer software
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

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;}