SlideShare une entreprise Scribd logo
1  sur  17
CSS
Cascading Style Sheets
CSS in HTML PAGES
• In-Line
• Tag Style
<html>
<head>
<title>Example</title>
</head>
<body style="background-color: #FF0000;">
<p>This is a red page</p>
</body>
</html>
<html>
<head>
<title>Example</title>
<style type="text/css"> body {background-color: #FF0000;} </style>
</head>
<body>
<p>This is a red page</p>
</body>
</html>
CSS in HTML PAGES
• Link
Style.css:
<html>
<head>
<title>My document</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<p>This is a red page</p>
</body>
</html>
body {
background-color: #FF0000;
}
CSS Properties
body {
background-color: #FFCC66;
background-image: url("butterfly.gif");
background-repeat: no-repeat;
background-position: right bottom;
}
h1 {
background: #FFCC66 url("butterfly.gif") no-repeat right bottom;
}
p {
color: #990000;
font-style: italic;
font-weight: bold;
font-size: 30px;
font-family: arial, sans-serif;
}
h1 {
text-align: center;
}
p {
text-align: justify;
text-decoration: underline;
text-transform: uppercase;
}
CSS Selectors
Universal:
Type:
Class
* {
padding: 0;
margin: 0;
}
h1 {
font-size: 12px;
}
.header {
height: 200px;
}
<h1 class=“header”>This is text</h1>
CSS Selectors
Identification:
Attribute:
#header {
height: 200px;
}
<h1 id=“header”>This is text</h1>
input[type="submit"] {
background: #0f0;
}
<input type="submit" value=“Send to server"/>
<input type=“button" value=“Press me!"/>
input[type*="submit"] {
background: #0f0;
}
CSS PseudoClass
a:link {
color: blue;
}
a:visited {
color: red;
}
a:hover {
color: orange;
font-style: italic;
}
a:active {
color: green;
}
input:focus {
color: #aabbcc;
}
p:first-child {
color: grey;
}
CSS PseudoElement
h1:before {
content: “H1 tag open:";
color: red;
margin: 5px;
}
h1:after {
content: “:H1 tag close";
color: green;
margin: 5px;
}
CSS Selector Combination
Descendant selectors
p span {
color: #333;
}
<p>Черный текст <span>серый текст</span> черный текст </p>
<span>Черный текст</span>
<p>Черный текст <em>Черный текст <span>серый текст</span></em> черный текст</p>
#header .menu div {
text-align: center;
}
CSS Selector Combination
Child selectors
div > span {
color: #aaa;
}
<div>Этот текст будет черного цвета.
<span>А этот серого, ведь этот span — дочерний элемент для div.</span>
<p>Тут опять черный текст. <span>И этот текст тоже черный, так как этот span не дочерний
для div. Его непосредственный родитель — тег p.</span>
</p>
</div>
CSS Selector Combination
Adjacent sibling selectors
h1 + span {
font-weight: bold;
}
<h1>Very useful text</h1>
<span>This text is bold</span>
<p>Some other text</p>
<span>This text is NOT bold</span>
CSS Selector Combination
Grouping selector
h1, h2, h3 {
font-weight: bold;
}
div span, #header {
font-size: 12px
}
CSS specificity
Important
* /* a=0 b=0 c=0 -> specificity = 0 */
LI /* a=0 b=0 c=1 -> specificity = 1 */
UL LI /* a=0 b=0 c=2 -> specificity = 2 */
UL OL+LI /* a=0 b=0 c=3 -> specificity = 3 */
H1 + *[REL=up] /* a=0 b=1 c=1 -> specificity = 11 */
UL OL LI.red /* a=0 b=1 c=3 -> specificity = 13 */
LI.red.level /* a=0 b=2 c=1 -> specificity = 21 */
#x34y /* a=1 b=0 c=0 -> specificity = 100 */
#s12:not(FOO) /* a=1 b=0 c=1 -> specificity = 101 */
h1 {
font-weight: bold!important;
}
h1 {
font-weight: normal;
}
CSS Media types
Size
Type
div {
width: 300px;
}
@media all and (max-width: 1280px) {
div {
width: 200px;
}
}
div {
background-color: green;
}
@media print {
div {
background-color: white;
}
}
CSS Vendor prefixes
Chrome: -webkit-
Firefox: -moz-
Internet Explorer: -ms-
Opera: -o-
div {
-webkit-transition: all 4s ease;
-moz-transition: all 4s ease;
-ms-transition: all 4s ease;
-o-transition: all 4s ease;
transition: all 4s ease;
}
CSS Measurements
Unit Description Example
% Defines a measurement as a percentage relative to another value, typically an
enclosing element.
p {
font-size: 16pt;
line-height: 125%;}
cm Defines a measurement in centimeters. div {
margin-bottom: 2cm;}
em A relative measurement for the height of a font in em spaces. Because an em unit is
equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would
be 12pt; thus, 2em would be 24pt.
p {
letter-spacing: 7em;
}
ex This value defines a measurement relative to a font's x-height. The x-height is
determined by the height of the font's lowercase letter x.
p {
font-size: 24pt;
line-height: 3ex;
}
in Defines a measurement in inches. p {word-spacing: .15in;}
mm Defines a measurement in millimeters. p {
word-spacing: 15mm;}
pc Defines a measurement in picas. A pica is equivalent to 12 points; thus, there are 6
picas per inch.
p {
font-size: 20pc;
}
pt Defines a measurement in points. A point is defined as 1/72nd of an inch. body {
font-size: 18pt;}
px Defines a measurement in screen pixels. p {padding: 25px;}
CSS HomeTask
vadim_test2.html
style.css

Contenu connexe

Tendances

Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSdanpaquette
 
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)Michaela Lehr
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By AuroskkilBoneyGawande
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2Gheyath M. Othman
 
Web Design Course: CSS lecture 5
Web Design Course: CSS  lecture 5Web Design Course: CSS  lecture 5
Web Design Course: CSS lecture 5Gheyath M. Othman
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Gheyath M. Othman
 
Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4Gheyath M. Othman
 
IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSSVlad Posea
 
CSS-3 Course Slide
CSS-3 Course SlideCSS-3 Course Slide
CSS-3 Course SlideBoneyGawande
 
Introduction to css part1
Introduction to css part1Introduction to css part1
Introduction to css part1Khem Puthea
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desainfaizibra
 
Cascading Style Sheets - CSS - Tutorial
Cascading Style Sheets - CSS  -  TutorialCascading Style Sheets - CSS  -  Tutorial
Cascading Style Sheets - CSS - TutorialMSA Technosoft
 

Tendances (20)

Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By Auroskkil
 
CSS Refresher
CSS RefresherCSS Refresher
CSS Refresher
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
 
Slicing the web
Slicing the webSlicing the web
Slicing the web
 
Web Design Course: CSS lecture 5
Web Design Course: CSS  lecture 5Web Design Course: CSS  lecture 5
Web Design Course: CSS lecture 5
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
Css notes
Css notesCss notes
Css notes
 
Css
CssCss
Css
 
Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4
 
IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSS
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
CSS-3 Course Slide
CSS-3 Course SlideCSS-3 Course Slide
CSS-3 Course Slide
 
Introduction to css part1
Introduction to css part1Introduction to css part1
Introduction to css part1
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
Cascading Style Sheets - CSS - Tutorial
Cascading Style Sheets - CSS  -  TutorialCascading Style Sheets - CSS  -  Tutorial
Cascading Style Sheets - CSS - Tutorial
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 

En vedette

How Intelligent Communities Are Re-Inventing Urban and Rural Planning
How Intelligent Communities Are  Re-Inventing Urban  and Rural PlanningHow Intelligent Communities Are  Re-Inventing Urban  and Rural Planning
How Intelligent Communities Are Re-Inventing Urban and Rural PlanningAntonio Sánchez Zaplana
 
Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1ilesh raval
 
International Students (lecture notes)
International Students (lecture notes)International Students (lecture notes)
International Students (lecture notes)Christie Barakat
 
Exam sem1
Exam sem1Exam sem1
Exam sem1Irina K
 
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...Bob DeHart
 
AVG Protection Reviewer's Guide 2015
AVG Protection Reviewer's Guide 2015AVG Protection Reviewer's Guide 2015
AVG Protection Reviewer's Guide 2015AVG Technologies
 
Cara membuat email (gmail)
Cara membuat email (gmail)Cara membuat email (gmail)
Cara membuat email (gmail)regita_
 
Exploring Open Education; Re-imagining Higher Education
Exploring Open Education; Re-imagining Higher EducationExploring Open Education; Re-imagining Higher Education
Exploring Open Education; Re-imagining Higher EducationCatherine Cronin
 
WEB-6.19.15_English
WEB-6.19.15_EnglishWEB-6.19.15_English
WEB-6.19.15_EnglishQiaoyu Feng
 
Osteo osteomalacia ricket2
Osteo osteomalacia ricket2Osteo osteomalacia ricket2
Osteo osteomalacia ricket2padli ahmad
 
9 01230 Tx 424 001
9 01230 Tx 424 0019 01230 Tx 424 001
9 01230 Tx 424 001guest8a7015
 
7 puppet horror stories in 7 years - PuppetConf 2014
7 puppet horror stories in 7 years - PuppetConf 20147 puppet horror stories in 7 years - PuppetConf 2014
7 puppet horror stories in 7 years - PuppetConf 2014Puppet
 

En vedette (20)

Neednt Or Mustnt
Neednt Or MustntNeednt Or Mustnt
Neednt Or Mustnt
 
How Intelligent Communities Are Re-Inventing Urban and Rural Planning
How Intelligent Communities Are  Re-Inventing Urban  and Rural PlanningHow Intelligent Communities Are  Re-Inventing Urban  and Rural Planning
How Intelligent Communities Are Re-Inventing Urban and Rural Planning
 
MySQL Query Browser
MySQL Query BrowserMySQL Query Browser
MySQL Query Browser
 
Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1
 
International Students (lecture notes)
International Students (lecture notes)International Students (lecture notes)
International Students (lecture notes)
 
Pci 8158 manual-10
Pci 8158 manual-10Pci 8158 manual-10
Pci 8158 manual-10
 
Exam sem1
Exam sem1Exam sem1
Exam sem1
 
11111i
11111i11111i
11111i
 
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...
IPTC-18322-MS_SHE&S Improvement of a Major Subcontractor on the RG Barzan Ons...
 
WebLineOffice For Dummies
WebLineOffice For DummiesWebLineOffice For Dummies
WebLineOffice For Dummies
 
AVG Protection Reviewer's Guide 2015
AVG Protection Reviewer's Guide 2015AVG Protection Reviewer's Guide 2015
AVG Protection Reviewer's Guide 2015
 
Cara membuat email (gmail)
Cara membuat email (gmail)Cara membuat email (gmail)
Cara membuat email (gmail)
 
Exploring Open Education; Re-imagining Higher Education
Exploring Open Education; Re-imagining Higher EducationExploring Open Education; Re-imagining Higher Education
Exploring Open Education; Re-imagining Higher Education
 
WEB-6.19.15_English
WEB-6.19.15_EnglishWEB-6.19.15_English
WEB-6.19.15_English
 
C H I N A
C H I N AC H I N A
C H I N A
 
Osteo osteomalacia ricket2
Osteo osteomalacia ricket2Osteo osteomalacia ricket2
Osteo osteomalacia ricket2
 
9 01230 Tx 424 001
9 01230 Tx 424 0019 01230 Tx 424 001
9 01230 Tx 424 001
 
Climate Change 1.2.3
Climate Change 1.2.3Climate Change 1.2.3
Climate Change 1.2.3
 
7 puppet horror stories in 7 years - PuppetConf 2014
7 puppet horror stories in 7 years - PuppetConf 20147 puppet horror stories in 7 years - PuppetConf 2014
7 puppet horror stories in 7 years - PuppetConf 2014
 
T44444
T44444T44444
T44444
 

Similaire à Css1

HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptraghavanp4
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSSBeckhamWee
 
Html html html html html html html html html
Html html html html html html html html htmlHtml html html html html html html html html
Html html html html html html html html htmlriturajbhujel103
 
IP - Lecture 6, 7 Chapter-3 (3).ppt
IP - Lecture 6, 7 Chapter-3 (3).pptIP - Lecture 6, 7 Chapter-3 (3).ppt
IP - Lecture 6, 7 Chapter-3 (3).pptkassahungebrie
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptIsmaciil2
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssTesfaye Yenealem
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)Jayson Cortez
 
Html Styles-CSS
Html Styles-CSSHtml Styles-CSS
Html Styles-CSSispkosova
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13Amanda Case
 

Similaire à Css1 (20)

Turorial css
Turorial cssTurorial css
Turorial css
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
 
Html html html html html html html html html
Html html html html html html html html htmlHtml html html html html html html html html
Html html html html html html html html html
 
IP - Lecture 6, 7 Chapter-3 (3).ppt
IP - Lecture 6, 7 Chapter-3 (3).pptIP - Lecture 6, 7 Chapter-3 (3).ppt
IP - Lecture 6, 7 Chapter-3 (3).ppt
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 
css1.ppt
css1.pptcss1.ppt
css1.ppt
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet css
 
css1.pptx
css1.pptxcss1.pptx
css1.pptx
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)
 
Html Styles-CSS
Html Styles-CSSHtml Styles-CSS
Html Styles-CSS
 
Web technology lab manual
Web technology lab manualWeb technology lab manual
Web technology lab manual
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Css1
Css1Css1
Css1
 
html
htmlhtml
html
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
css-ppt.pdf
css-ppt.pdfcss-ppt.pdf
css-ppt.pdf
 

Dernier

Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 

Dernier (20)

Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 

Css1

  • 2. CSS in HTML PAGES • In-Line • Tag Style <html> <head> <title>Example</title> </head> <body style="background-color: #FF0000;"> <p>This is a red page</p> </body> </html> <html> <head> <title>Example</title> <style type="text/css"> body {background-color: #FF0000;} </style> </head> <body> <p>This is a red page</p> </body> </html>
  • 3. CSS in HTML PAGES • Link Style.css: <html> <head> <title>My document</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> </head> <body> <p>This is a red page</p> </body> </html> body { background-color: #FF0000; }
  • 4. CSS Properties body { background-color: #FFCC66; background-image: url("butterfly.gif"); background-repeat: no-repeat; background-position: right bottom; } h1 { background: #FFCC66 url("butterfly.gif") no-repeat right bottom; } p { color: #990000; font-style: italic; font-weight: bold; font-size: 30px; font-family: arial, sans-serif; } h1 { text-align: center; } p { text-align: justify; text-decoration: underline; text-transform: uppercase; }
  • 5. CSS Selectors Universal: Type: Class * { padding: 0; margin: 0; } h1 { font-size: 12px; } .header { height: 200px; } <h1 class=“header”>This is text</h1>
  • 6. CSS Selectors Identification: Attribute: #header { height: 200px; } <h1 id=“header”>This is text</h1> input[type="submit"] { background: #0f0; } <input type="submit" value=“Send to server"/> <input type=“button" value=“Press me!"/> input[type*="submit"] { background: #0f0; }
  • 7. CSS PseudoClass a:link { color: blue; } a:visited { color: red; } a:hover { color: orange; font-style: italic; } a:active { color: green; } input:focus { color: #aabbcc; } p:first-child { color: grey; }
  • 8. CSS PseudoElement h1:before { content: “H1 tag open:"; color: red; margin: 5px; } h1:after { content: “:H1 tag close"; color: green; margin: 5px; }
  • 9. CSS Selector Combination Descendant selectors p span { color: #333; } <p>Черный текст <span>серый текст</span> черный текст </p> <span>Черный текст</span> <p>Черный текст <em>Черный текст <span>серый текст</span></em> черный текст</p> #header .menu div { text-align: center; }
  • 10. CSS Selector Combination Child selectors div > span { color: #aaa; } <div>Этот текст будет черного цвета. <span>А этот серого, ведь этот span — дочерний элемент для div.</span> <p>Тут опять черный текст. <span>И этот текст тоже черный, так как этот span не дочерний для div. Его непосредственный родитель — тег p.</span> </p> </div>
  • 11. CSS Selector Combination Adjacent sibling selectors h1 + span { font-weight: bold; } <h1>Very useful text</h1> <span>This text is bold</span> <p>Some other text</p> <span>This text is NOT bold</span>
  • 12. CSS Selector Combination Grouping selector h1, h2, h3 { font-weight: bold; } div span, #header { font-size: 12px }
  • 13. CSS specificity Important * /* a=0 b=0 c=0 -> specificity = 0 */ LI /* a=0 b=0 c=1 -> specificity = 1 */ UL LI /* a=0 b=0 c=2 -> specificity = 2 */ UL OL+LI /* a=0 b=0 c=3 -> specificity = 3 */ H1 + *[REL=up] /* a=0 b=1 c=1 -> specificity = 11 */ UL OL LI.red /* a=0 b=1 c=3 -> specificity = 13 */ LI.red.level /* a=0 b=2 c=1 -> specificity = 21 */ #x34y /* a=1 b=0 c=0 -> specificity = 100 */ #s12:not(FOO) /* a=1 b=0 c=1 -> specificity = 101 */ h1 { font-weight: bold!important; } h1 { font-weight: normal; }
  • 14. CSS Media types Size Type div { width: 300px; } @media all and (max-width: 1280px) { div { width: 200px; } } div { background-color: green; } @media print { div { background-color: white; } }
  • 15. CSS Vendor prefixes Chrome: -webkit- Firefox: -moz- Internet Explorer: -ms- Opera: -o- div { -webkit-transition: all 4s ease; -moz-transition: all 4s ease; -ms-transition: all 4s ease; -o-transition: all 4s ease; transition: all 4s ease; }
  • 16. CSS Measurements Unit Description Example % Defines a measurement as a percentage relative to another value, typically an enclosing element. p { font-size: 16pt; line-height: 125%;} cm Defines a measurement in centimeters. div { margin-bottom: 2cm;} em A relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em would be 24pt. p { letter-spacing: 7em; } ex This value defines a measurement relative to a font's x-height. The x-height is determined by the height of the font's lowercase letter x. p { font-size: 24pt; line-height: 3ex; } in Defines a measurement in inches. p {word-spacing: .15in;} mm Defines a measurement in millimeters. p { word-spacing: 15mm;} pc Defines a measurement in picas. A pica is equivalent to 12 points; thus, there are 6 picas per inch. p { font-size: 20pc; } pt Defines a measurement in points. A point is defined as 1/72nd of an inch. body { font-size: 18pt;} px Defines a measurement in screen pixels. p {padding: 25px;}