SlideShare ist ein Scribd-Unternehmen logo
1 von 28
CSS By:
MuzamilAhmed & FaizanAhmed
Font Properties:
• Font - Family :
You can set what font will be displayed in an element.
• Example:
font-family:Verdana , sans-serif ;
• Font Size :
You can set the size of the text used in an element by using the font-
size property.
• Example:
font-size: value ;
• There are a lot of choices for values:
• xx-large
• x-large
• Larger
• Large
• Medium
• Small
• Smaller
• x-small
• xx-small
• Length
• % (percent)
• Font Style:
You can set the style of text in a element with the font-styleproperty
• Example:
font-style: value;
• Possible values are:
1. Normal
2. Itailc
3. Oblique
• Font Weight:
You can control the weight of text in an element with the font-weight
property:
• Example:
font-weight: value;
• Possible values are:
1. Lighter
2. Normal
3. 100 - 900
4. Bold
5. bolder
CSS Anchors, Links & pseudo Classes
• Below are the various ways you can use CSS to style links:
o a:link { color: #009900; }
o a:visited { color: #999999; }
o a:hover { color: #333333; }
o a:focus { color: #333333; }
o a:active { color: #009900; }
• Visited Link:
The first on the list sets the color of a link when no event is
occurring.
Example: a:visited {color: #999999;}
• Hover:
The second sets the color a link changes to, when the user has
already visited that url.
Example: a:hover {color: #333333;}
• Focus:
The third sets the color a link changes to as the user places their
mouse pointer over the link. ForTabbing.
Example: a:focus {color: #333333;}
• Active Link:
The color a link changes to as it is pressed.
Example: a:active {color: #009900;}
• Note: You must declare the a:link & a:visited before you declare a:hover.
Furthermore, you must declare a:hover before you can declare a:active.
CSS Backgrounds
• Background Attachment:
If you are using an image as a background.You can
set whether the background scrolls with the page or is fixed when the user
scrolls down the page with the background- attachment property.
• Example:
background-attachment: value;
• Values:
• Fixed
• Scroll
Background Image
• You can set an image for the background of an element using the
background- image property.
• Example:
background-image: url ( path_to_image );
background: url (img_tree.gif) , url(img_flwr.gif) ;
• Values:
o url
o none
Background Position
• Background Position:
You can position an image used for the background of an
element using the background- position property.
• Example:
background-position: value;
• Values:
• Top left / right / center
• Center left / center / right
• Bottom left / right / center
• x-% y-%
• x-pos y-pos
Background Repeat
• Background Repeat:
You can set if an image set as a background of an
element is to repeat (across=x and/or down=y) the screen.
• Example:
background-repeat: value;
• Values:
• no-repeat
• Repeat
• repeat-x
• repeat-y
Background Size
• background-size:
• Background-size : 10px 30px ;
Short Hand Method
CSS Borders
• Border Color:
You can set the color of a border independently with the
border-color property.
• Example:
border-color: value;
• Values:
• color name
• Hexadecimal number
• RGB color code
• Transparent
• Border Style:
You can set the style of a border independently with the
border-style property.
• Example:
border-style: value;
• Values:
• Dashed hidden
• Inset Groove
• None Double
• Outset Dotted
• Ridge Solid
• BorderWidth:
You can set the width of a border independently with the
border-width property.
• Example:
border-width: value;
• Values:
• Length
• Thin
• Medium
• Thick
• Border Bottom:
You can set the color, style and width of the bottom border
around an element in one declaration with the border-bottomproperty.
• Example:
border-bottom: 1px solid #333333;
• Values:
• color
• Style
• width
• Border Bottom:
ColorYou can set the color of the bottom border around an
element with the border-bottom- color property.
• Example: border-bottom-color: value;
• Border Bottom Style:
You can set the style of the bottom border around an
element with the border-bottom- style property.
• Example: border-bottom-style: value;
• Border Bottom:
WidthYou can set the width of the bottom border around an
element with the border-bottom- width property.
• Example: border-bottom-width: value;
• Border Left :
You can set the color, style and width of the left border around
an element with the border- left property.
• Example:
border-left: 1px solid #333333;
• Values:
• Color
• Style
• Width
• Border Left:
ColorYou can set the color of the left border around an element
with the border-left- color property.
• Example: border-left-color: value;
• Border Left Style:
You can set the style of the left border around an element
with the border-left-style property.
• Example: border-left-style: value;
• Border LeftWidth:
You can set the width of the left border around an
element with the border-left- width property.
• Example: border-left-width: value;
• Border Right :
You can set the color, style and width of the right border
around an element in one declaration with the border-right property.
• Example:
border-right: 1px solid #333333;
• Values:
• Color
• Style
• width
• Border Right:
ColorYou can set the color of the right border around an
element with the border-right- color property.
• Example: border-right-color: value;
• Border Right:
StyleYou can set the style of the right border around an
element with the border-right- style property.
• Example: border-right-style: value;
• Border Right:
WidthYou can set the width of the right border around an
element with the border-right- width property.
• Example: border-right-width: value
• BorderTop:
You can set the color, style and width of the top border around
an element in one declaration with the border-top property.
• Example:
border-top: 1px solid #333333;
• Values:
• Color
• style
• width
• BorderTop:
ColorYou can set the color of the top border around an element
with the border-top- color property.
• Example: border-top-color: value;
• BorderTop:
StyleYou can set the style of the top border around an element
with the border-top- style property.
• Example: border-top-style: value;
• BorderTop:
WidthYou can set the width of the top border around an
element with the border-top- width property.
• Example: border-top-width: value;
Border Radius
• There AreThree new Borders Properties:
• border-radius
• box-shadow
• border-image
• Example:
border-radius : 20% ;
box-shadow : 10px 30px 5px #890909;
border-image : url (border.png) 40 40 round;
More…
• border-bottom-left-radius:2em;
• border-bottom-right-radius:2em;
• border-bottom-style : dotted ;
• border-bottom-width:15px;
• border-bottom-color:#ff0000;
• border-color:#ff0000 #0000ff;
CSS By:
MuzamilAhmed & FaizanAhmed
mailtofaizanahmed@gmail.com
Facebook.com/pakifa

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Css ppt
Css pptCss ppt
Css ppt
 
Css
CssCss
Css
 
CSS Part I
CSS Part ICSS Part I
CSS Part I
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
Basics Of Css And Some Common Mistakes
Basics Of Css And Some Common MistakesBasics Of Css And Some Common Mistakes
Basics Of Css And Some Common Mistakes
 
Css
CssCss
Css
 
CSS
CSS CSS
CSS
 
Css
CssCss
Css
 
CSS
CSSCSS
CSS
 
CSS Part II
CSS Part IICSS Part II
CSS Part II
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Css
CssCss
Css
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
 
Css
CssCss
Css
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
CSS Basic Introduction, Rules, And Tips
CSS Basic Introduction, Rules, And TipsCSS Basic Introduction, Rules, And Tips
CSS Basic Introduction, Rules, And Tips
 
Css training
Css trainingCss training
Css training
 
Css
CssCss
Css
 

Ähnlich wie Css3 (20)

CSS tutorial chapter 2
CSS tutorial chapter 2CSS tutorial chapter 2
CSS tutorial chapter 2
 
Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4
 
Unit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptxUnit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptx
 
Pres
PresPres
Pres
 
Chapter 14: Box Model
Chapter 14: Box ModelChapter 14: Box Model
Chapter 14: Box Model
 
Web Development - Lecture 6
Web Development - Lecture 6Web Development - Lecture 6
Web Development - Lecture 6
 
Castro Chapter 11
Castro Chapter 11Castro Chapter 11
Castro Chapter 11
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
Dimensions of elements.pdf
Dimensions of elements.pdfDimensions of elements.pdf
Dimensions of elements.pdf
 
Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
 
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 for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learner
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
Css2
Css2Css2
Css2
 
Css2
Css2Css2
Css2
 
Css borders
Css bordersCss borders
Css borders
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter2
Chapter2Chapter2
Chapter2
 
Web - CSS 1.pptx
Web - CSS 1.pptxWeb - CSS 1.pptx
Web - CSS 1.pptx
 

Mehr von Evolution Network (9)

OOP
OOPOOP
OOP
 
Funda of accounting
Funda of accountingFunda of accounting
Funda of accounting
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Peachtree installation guide
Peachtree installation guidePeachtree installation guide
Peachtree installation guide
 
Company formation
Company formationCompany formation
Company formation
 
How creat customers in peachtree
How creat customers in peachtreeHow creat customers in peachtree
How creat customers in peachtree
 
Cs101 a3
Cs101 a3Cs101 a3
Cs101 a3
 
Vendor in peachtree
Vendor in peachtreeVendor in peachtree
Vendor in peachtree
 
computerized accounting
computerized accountingcomputerized accounting
computerized accounting
 

Kürzlich hochgeladen

Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durbanmasabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 

Kürzlich hochgeladen (20)

Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 

Css3

  • 2. Font Properties: • Font - Family : You can set what font will be displayed in an element. • Example: font-family:Verdana , sans-serif ;
  • 3. • Font Size : You can set the size of the text used in an element by using the font- size property. • Example: font-size: value ; • There are a lot of choices for values: • xx-large • x-large • Larger • Large • Medium • Small • Smaller • x-small • xx-small • Length • % (percent)
  • 4. • Font Style: You can set the style of text in a element with the font-styleproperty • Example: font-style: value; • Possible values are: 1. Normal 2. Itailc 3. Oblique
  • 5. • Font Weight: You can control the weight of text in an element with the font-weight property: • Example: font-weight: value; • Possible values are: 1. Lighter 2. Normal 3. 100 - 900 4. Bold 5. bolder
  • 6. CSS Anchors, Links & pseudo Classes • Below are the various ways you can use CSS to style links: o a:link { color: #009900; } o a:visited { color: #999999; } o a:hover { color: #333333; } o a:focus { color: #333333; } o a:active { color: #009900; }
  • 7. • Visited Link: The first on the list sets the color of a link when no event is occurring. Example: a:visited {color: #999999;} • Hover: The second sets the color a link changes to, when the user has already visited that url. Example: a:hover {color: #333333;} • Focus: The third sets the color a link changes to as the user places their mouse pointer over the link. ForTabbing. Example: a:focus {color: #333333;}
  • 8. • Active Link: The color a link changes to as it is pressed. Example: a:active {color: #009900;} • Note: You must declare the a:link & a:visited before you declare a:hover. Furthermore, you must declare a:hover before you can declare a:active.
  • 9. CSS Backgrounds • Background Attachment: If you are using an image as a background.You can set whether the background scrolls with the page or is fixed when the user scrolls down the page with the background- attachment property. • Example: background-attachment: value; • Values: • Fixed • Scroll
  • 10. Background Image • You can set an image for the background of an element using the background- image property. • Example: background-image: url ( path_to_image ); background: url (img_tree.gif) , url(img_flwr.gif) ; • Values: o url o none
  • 11. Background Position • Background Position: You can position an image used for the background of an element using the background- position property. • Example: background-position: value; • Values: • Top left / right / center • Center left / center / right • Bottom left / right / center • x-% y-% • x-pos y-pos
  • 12. Background Repeat • Background Repeat: You can set if an image set as a background of an element is to repeat (across=x and/or down=y) the screen. • Example: background-repeat: value; • Values: • no-repeat • Repeat • repeat-x • repeat-y
  • 13. Background Size • background-size: • Background-size : 10px 30px ;
  • 15. CSS Borders • Border Color: You can set the color of a border independently with the border-color property. • Example: border-color: value; • Values: • color name • Hexadecimal number • RGB color code • Transparent
  • 16. • Border Style: You can set the style of a border independently with the border-style property. • Example: border-style: value; • Values: • Dashed hidden • Inset Groove • None Double • Outset Dotted • Ridge Solid
  • 17. • BorderWidth: You can set the width of a border independently with the border-width property. • Example: border-width: value; • Values: • Length • Thin • Medium • Thick
  • 18. • Border Bottom: You can set the color, style and width of the bottom border around an element in one declaration with the border-bottomproperty. • Example: border-bottom: 1px solid #333333; • Values: • color • Style • width
  • 19. • Border Bottom: ColorYou can set the color of the bottom border around an element with the border-bottom- color property. • Example: border-bottom-color: value; • Border Bottom Style: You can set the style of the bottom border around an element with the border-bottom- style property. • Example: border-bottom-style: value; • Border Bottom: WidthYou can set the width of the bottom border around an element with the border-bottom- width property. • Example: border-bottom-width: value;
  • 20. • Border Left : You can set the color, style and width of the left border around an element with the border- left property. • Example: border-left: 1px solid #333333; • Values: • Color • Style • Width
  • 21. • Border Left: ColorYou can set the color of the left border around an element with the border-left- color property. • Example: border-left-color: value; • Border Left Style: You can set the style of the left border around an element with the border-left-style property. • Example: border-left-style: value; • Border LeftWidth: You can set the width of the left border around an element with the border-left- width property. • Example: border-left-width: value;
  • 22. • Border Right : You can set the color, style and width of the right border around an element in one declaration with the border-right property. • Example: border-right: 1px solid #333333; • Values: • Color • Style • width
  • 23. • Border Right: ColorYou can set the color of the right border around an element with the border-right- color property. • Example: border-right-color: value; • Border Right: StyleYou can set the style of the right border around an element with the border-right- style property. • Example: border-right-style: value; • Border Right: WidthYou can set the width of the right border around an element with the border-right- width property. • Example: border-right-width: value
  • 24. • BorderTop: You can set the color, style and width of the top border around an element in one declaration with the border-top property. • Example: border-top: 1px solid #333333; • Values: • Color • style • width
  • 25. • BorderTop: ColorYou can set the color of the top border around an element with the border-top- color property. • Example: border-top-color: value; • BorderTop: StyleYou can set the style of the top border around an element with the border-top- style property. • Example: border-top-style: value; • BorderTop: WidthYou can set the width of the top border around an element with the border-top- width property. • Example: border-top-width: value;
  • 26. Border Radius • There AreThree new Borders Properties: • border-radius • box-shadow • border-image • Example: border-radius : 20% ; box-shadow : 10px 30px 5px #890909; border-image : url (border.png) 40 40 round;
  • 27. More… • border-bottom-left-radius:2em; • border-bottom-right-radius:2em; • border-bottom-style : dotted ; • border-bottom-width:15px; • border-bottom-color:#ff0000; • border-color:#ff0000 #0000ff;
  • 28. CSS By: MuzamilAhmed & FaizanAhmed mailtofaizanahmed@gmail.com Facebook.com/pakifa