SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Md. Ali Hosssain.
Web Designer.
Jr. Instructor, Graphic Arts Innstitute.
Email:Students.gai@gmail.com
Phone:01731402303
02/08/14
CSS?
Cascading Style Sheets
CSS is a style sheet language used to determine the formatting of an
HTML document.
Before we had CSS (and before it was widely adopted) all of this
formatting information was embedded directly in the document- either
in the form of attributes like width or bgcolor (background color) or in
the form of purely presentational tags like font.
Combined with the abuse of the table tag to create complicated layouts,
the landscape for layout and design on the web was an unmanageable
mess.
CSS fixed all that (kind of.)
Using separate style sheets for an entire site, leveraging semantic
markup and identifiers like ids (for unique page elements) and classes
(for multiple, like elements) a developer can apply styles across a
whole site while updating a single (cacheable) file.
02/08/14
Enter CSS (The timeline)
CSS1
December 1996
CSS 2
Became a W3C Recommendation in May 1998
CSS 3
CSS level 3 has been under development since December 15, 2005

02/08/14
CSS Versions
 CSS 1
 Font properties such as typeface and emphasis
 Color of text, backgrounds, and other elements
 Text attributes such as spacing between words, letters, and lines of text
 Alignment of text, images, tables and other elements
 Margin, border, padding, and positioning for most elements
 Unique identification and generic classification of groups of attributes
 CSS2

includes a number of new capabilities like
 absolute, relative, and fixed positioning of elements and z-index,
 the concept of media types
 support for aural style sheets and bidirectional text
 new font properties such as shadows.
02/08/14
CSS Versions
 CSS3

Modules include:
Borders (border-radius, box-shadow)
Backgrounds (multiple backgrounds)
Color (HSL colors, HSLA colors, opacity, RGBA colors)
Also:
media queries
multi-column layout
Web fonts

02/08/14
CSS Tips and Tricks for Designing
Accessible Websites

02/08/14
Objectives
Understand the benefits of CSS
Understand principles of liquid design and how it relates to

accessibility
Demonstrate simple techniques for using CSS to make websites
more accessible
List some useful resources

02/08/14
Benefits of CSS
CSS Helps Your Users

 Exercise greater control over how websites are
presented.
 Access websites on multiple media platforms:
o
o
o
o
o

Computer monitors
Paper
Projectors
Screen readers for the blind
Mobile phones
02/08/14
CSS Helps You

Save time by controlling the styles for your entire website

with one file.
Simplify your web documents.
Reduce file sizes.

02/08/14
Liquid Design
Principles of Liquid Design
 Layout elements are given relative sizes (usually
percentages).
 The page scales to fit any view port, no matter
the resolution, screen size, or text size.
 The user does not need to use the horizontal
scroll bar.

02/08/14
Liquid Design and Accessibility
Liquid design helps your page “degrade gracefully.”
The page displays properly even if the user:
o Changes text size or screen resolution.
o Views the page on an extra large monitor.
o Disables style sheets.

02/08/14
CSS Techniques

02/08/14
Style Sheets
Each element on a page has a style defined for it.
The style is defined by a set of attribute : value

pairs.
Style attributes can control:
Typeface and font properties
Background properties
Box-related properties
List properties

02/08/14
Ways to define styles


Default style: provides values for all element properties,
unless you change it. (Note: user can customize browser to
change defaults!)

 Inline style: style is defined as an attribute of the element in-

place. Use this for “one-off” or special styles.

 Embedded style sheet: styles defined in the head portion of

web page. Use this if you don’t have very many web pages,
or for styles that are useful only for the given page.

 External style sheet: styles defined in a separate file. Use

this to centralize style definitions and provide uniformity
across all pages of a web site.
02/08/14
Adding styles to pages
1.

Inline CSS


handy, but don’t abuse it because it puts presentation back with the content

02/08/14
Embedded Style Sheet
<html>
<head>
<title>Page with embedded style</title>
<style type="text/css">
selector { attribute : value ;
attribute : value ... }
selector { attribute : value ;
attribute : value ... }
...
‱Style definitions go into a <style> element in document
</style>
head.
</head>
‱Selector determines what elements the style rule applies
to.
</html>
‱Style definitions separated by ; are enclosed in { }

02/08/14
Embedded Style Sheet (cont’d)

<html>
<head>
<title>Page with embedded style</title>
<style type="text/css">
selector { attribute : value ;
attribute : value ... }
selector { attribute : value ;
attribute : value ... }
...
</style>
</head>
‱The type attribute can only be "text/css". (It is
leaving room for future alternative style languages.)
...
‱Note: CSS is not HTML!
</html>
02/08/14
Example

<html>
<head>
<title>Example page with embedded
style</title>
<style type="text/css">
body { font-family : sans-serif;
color : blue;
background-color : yellow }
h1
{ font-style : italic }
p
{ font-size : 14pt }
ol
{ font-size : 12pt;
color : red;
font-family : serif }
</style>
Here the selectors are simply tag names. The
</head>
style rules will apply to elements defined by
...
those tags. Result (Example 1)
</html>
02/08/14
Adding styles to pages
3.

External CSS




easier to read and modify
downloaded once for all website pages
separates content from presentation – the way to go

sample_style.css

02/08/14

sample.html
CSS rule
Selector

Values

Properties
02/08/14
02/08/14
Inheritance
 A descendant is an element that is enclosed (nested) in

another, its ancestor. (If it is an immediate descendant, it is
a child of the enclosing element, its parent. Elements
having the same parent are siblings.)
 All descendants of an element inherit its style properties,

unless these are overridden by their own style rules.
 If two styles could apply to the same element, the one

defined by the more specific rule will be used. For instance,
an explicit rule is always more specific than an inherited rule.
02/08/14
Inheritance in CSS
HTML documents are parsed into a document tree
 Example:

‱ used when
building CCS
rules

html
body

head

title

meta

link

h1

u
l

p

li

02/08/14

li

li

‱ some
properties (e.g.
font-family) are
inherited from
parents if not
specified
02/08/14

Weitere Àhnliche Inhalte

Was ist angesagt?

Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style SheetsMarc Steel
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)AakankshaR
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style SheetsSt. Petersburg College
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style SheetKushagraChadha1
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introductionapnwebdev
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designersSingsys Pte Ltd
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheetMichael Jhon
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS IntroductionSwati Sharma
 
CSS
CSS CSS
CSS Sunil OS
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSSMSA Technosoft
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSPrarthan P
 

Was ist angesagt? (19)

Css
CssCss
Css
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Css
CssCss
Css
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Css
CssCss
Css
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
chitra
chitrachitra
chitra
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
CSS
CSS CSS
CSS
 
Web Technology
Web TechnologyWeb Technology
Web Technology
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSS
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 

Andere mochten auch

E&B Natural Resources - Work Plan To Verify Pit Closure
E&B Natural Resources - Work Plan To Verify Pit ClosureE&B Natural Resources - Work Plan To Verify Pit Closure
E&B Natural Resources - Work Plan To Verify Pit ClosureStopHermosaBeachOil
 
Inmate toothbrushes
Inmate toothbrushesInmate toothbrushes
Inmate toothbrushesinstock
 
The diary of anne frank
The diary of anne frankThe diary of anne frank
The diary of anne frankMoneycar
 
Datomic rtree-pres
Datomic rtree-presDatomic rtree-pres
Datomic rtree-presjsofra
 
A5 MainoslehdykkÀ - koevedos
A5 MainoslehdykkÀ - koevedosA5 MainoslehdykkÀ - koevedos
A5 MainoslehdykkÀ - koevedosErno VÀlimÀki
 
Soft shell allwin wararmor (pants)
Soft shell allwin wararmor (pants)Soft shell allwin wararmor (pants)
Soft shell allwin wararmor (pants)Julia Pozdnyakova
 
Research for our sequence
Research for our sequenceResearch for our sequence
Research for our sequenceEddieDew
 
Physical rehabilitation in arthritis
Physical rehabilitation in arthritisPhysical rehabilitation in arthritis
Physical rehabilitation in arthritisVisith Dantanarayana
 
Clipping paths , Clipping path service, Photoshop clipping path. photo clipp...
Clipping paths ,  Clipping path service, Photoshop clipping path. photo clipp...Clipping paths ,  Clipping path service, Photoshop clipping path. photo clipp...
Clipping paths , Clipping path service, Photoshop clipping path. photo clipp...Clipping Path India
 
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜ
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜΗ πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜ
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜmizadome
 
Youhavetoseethesepictures
YouhavetoseethesepicturesYouhavetoseethesepictures
YouhavetoseethesepicturesBlessed Santos
 
Liceo canadiense bosques Presentaciones
Liceo canadiense bosques Presentaciones Liceo canadiense bosques Presentaciones
Liceo canadiense bosques Presentaciones Joshua Guevara Fuentes
 
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.metodist4560
 
Totalentreprenad enligt abt06
Totalentreprenad enligt abt06Totalentreprenad enligt abt06
Totalentreprenad enligt abt06Interaktiva Möten
 
Utförandeentreprenad enligt ab04
Utförandeentreprenad enligt ab04Utförandeentreprenad enligt ab04
Utförandeentreprenad enligt ab04Interaktiva Möten
 
The diary of anne frank (1) 2
The diary of anne frank (1) 2The diary of anne frank (1) 2
The diary of anne frank (1) 2Moneycar
 

Andere mochten auch (20)

E&B Natural Resources - Work Plan To Verify Pit Closure
E&B Natural Resources - Work Plan To Verify Pit ClosureE&B Natural Resources - Work Plan To Verify Pit Closure
E&B Natural Resources - Work Plan To Verify Pit Closure
 
Inmate toothbrushes
Inmate toothbrushesInmate toothbrushes
Inmate toothbrushes
 
The diary of anne frank
The diary of anne frankThe diary of anne frank
The diary of anne frank
 
Datomic rtree-pres
Datomic rtree-presDatomic rtree-pres
Datomic rtree-pres
 
A5 MainoslehdykkÀ - koevedos
A5 MainoslehdykkÀ - koevedosA5 MainoslehdykkÀ - koevedos
A5 MainoslehdykkÀ - koevedos
 
Soft shell allwin wararmor (pants)
Soft shell allwin wararmor (pants)Soft shell allwin wararmor (pants)
Soft shell allwin wararmor (pants)
 
Research for our sequence
Research for our sequenceResearch for our sequence
Research for our sequence
 
Curso de inglés bbc english 03
Curso de inglés bbc english 03Curso de inglés bbc english 03
Curso de inglés bbc english 03
 
Physical rehabilitation in arthritis
Physical rehabilitation in arthritisPhysical rehabilitation in arthritis
Physical rehabilitation in arthritis
 
Html class-04
Html class-04Html class-04
Html class-04
 
Clipping paths , Clipping path service, Photoshop clipping path. photo clipp...
Clipping paths ,  Clipping path service, Photoshop clipping path. photo clipp...Clipping paths ,  Clipping path service, Photoshop clipping path. photo clipp...
Clipping paths , Clipping path service, Photoshop clipping path. photo clipp...
 
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜ
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜΗ πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜ
Η πρÎčÎłÎșÎŻÏ€Îčσσα τωΜ λέΟΔωΜ
 
Banatero2011
Banatero2011Banatero2011
Banatero2011
 
Youhavetoseethesepictures
YouhavetoseethesepicturesYouhavetoseethesepictures
Youhavetoseethesepictures
 
Liceo canadiense bosques Presentaciones
Liceo canadiense bosques Presentaciones Liceo canadiense bosques Presentaciones
Liceo canadiense bosques Presentaciones
 
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.
АлДĐșсДĐč Đ—Đ°Ń…Đ°Ń€ĐŸĐČ.
 
Totalentreprenad enligt abt06
Totalentreprenad enligt abt06Totalentreprenad enligt abt06
Totalentreprenad enligt abt06
 
Utförandeentreprenad enligt ab04
Utförandeentreprenad enligt ab04Utförandeentreprenad enligt ab04
Utförandeentreprenad enligt ab04
 
The diary of anne frank (1) 2
The diary of anne frank (1) 2The diary of anne frank (1) 2
The diary of anne frank (1) 2
 
Md90 user manual
Md90 user manualMd90 user manual
Md90 user manual
 

Ähnlich wie Css class-01

Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdfwubiederebe1
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalorerajkamal560066
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsQA TrainingHub
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer NotesVskills
 
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
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to cssJoseph Gabriel
 
Cashcading stylesheets
Cashcading stylesheetsCashcading stylesheets
Cashcading stylesheetsreddivarihareesh
 
HTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptxHTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptxJJFajardo1
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSSHemant Patidar
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Binu Paul
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Erin M. Kidwell
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSShehzad Yaqoob
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1Jesus Obenita Jr.
 

Ähnlich wie Css class-01 (20)

Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
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
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Cashcading stylesheets
Cashcading stylesheetsCashcading stylesheets
Cashcading stylesheets
 
HTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptxHTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptx
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
Css
CssCss
Css
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
 
Css
CssCss
Css
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
 
Css
CssCss
Css
 
Css introduction
Css introductionCss introduction
Css introduction
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1
 

Mehr von Md Ali Hossain

Job environment (for new employee)
Job  environment (for new employee) Job  environment (for new employee)
Job environment (for new employee) Md Ali Hossain
 
Web offset presses
Web offset pressesWeb offset presses
Web offset pressesMd Ali Hossain
 
Modern printing technologies
Modern printing technologiesModern printing technologies
Modern printing technologiesMd Ali Hossain
 
Offset printing platon press
Offset printing platon pressOffset printing platon press
Offset printing platon pressMd Ali Hossain
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)Md Ali Hossain
 
Press mentainense(9553)
Press mentainense(9553)Press mentainense(9553)
Press mentainense(9553)Md Ali Hossain
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)Md Ali Hossain
 
Special printing
Special printingSpecial printing
Special printingMd Ali Hossain
 
Web authoring design-basics
Web authoring design-basicsWeb authoring design-basics
Web authoring design-basicsMd Ali Hossain
 

Mehr von Md Ali Hossain (20)

Job environment (for new employee)
Job  environment (for new employee) Job  environment (for new employee)
Job environment (for new employee)
 
Web offset presses
Web offset pressesWeb offset presses
Web offset presses
 
Modern printing technologies
Modern printing technologiesModern printing technologies
Modern printing technologies
 
Screen printing
Screen printingScreen printing
Screen printing
 
Color
ColorColor
Color
 
Flexography
FlexographyFlexography
Flexography
 
Offset printing platon press
Offset printing platon pressOffset printing platon press
Offset printing platon press
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)
 
Press mentainense(9553)
Press mentainense(9553)Press mentainense(9553)
Press mentainense(9553)
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)
 
Special printing
Special printingSpecial printing
Special printing
 
142
142142
142
 
Web authoring design-basics
Web authoring design-basicsWeb authoring design-basics
Web authoring design-basics
 
Site designer
Site designerSite designer
Site designer
 
Webdesign
WebdesignWebdesign
Webdesign
 
Httml flash
Httml flashHttml flash
Httml flash
 
Html class-07
Html class-07Html class-07
Html class-07
 
Html class-02
Html class-02Html class-02
Html class-02
 
Html class-01
Html class-01Html class-01
Html class-01
 
Css class-02
Css class-02Css class-02
Css class-02
 

KĂŒrzlich hochgeladen

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

KĂŒrzlich hochgeladen (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Css class-01

  • 1. Md. Ali Hosssain. Web Designer. Jr. Instructor, Graphic Arts Innstitute. Email:Students.gai@gmail.com Phone:01731402303 02/08/14
  • 2. CSS? Cascading Style Sheets CSS is a style sheet language used to determine the formatting of an HTML document. Before we had CSS (and before it was widely adopted) all of this formatting information was embedded directly in the document- either in the form of attributes like width or bgcolor (background color) or in the form of purely presentational tags like font. Combined with the abuse of the table tag to create complicated layouts, the landscape for layout and design on the web was an unmanageable mess. CSS fixed all that (kind of.) Using separate style sheets for an entire site, leveraging semantic markup and identifiers like ids (for unique page elements) and classes (for multiple, like elements) a developer can apply styles across a whole site while updating a single (cacheable) file. 02/08/14
  • 3. Enter CSS (The timeline) CSS1 December 1996 CSS 2 Became a W3C Recommendation in May 1998 CSS 3 CSS level 3 has been under development since December 15, 2005 02/08/14
  • 4. CSS Versions  CSS 1  Font properties such as typeface and emphasis  Color of text, backgrounds, and other elements  Text attributes such as spacing between words, letters, and lines of text  Alignment of text, images, tables and other elements  Margin, border, padding, and positioning for most elements  Unique identification and generic classification of groups of attributes  CSS2 includes a number of new capabilities like  absolute, relative, and fixed positioning of elements and z-index,  the concept of media types  support for aural style sheets and bidirectional text  new font properties such as shadows. 02/08/14
  • 5. CSS Versions  CSS3 Modules include: Borders (border-radius, box-shadow) Backgrounds (multiple backgrounds) Color (HSL colors, HSLA colors, opacity, RGBA colors) Also: media queries multi-column layout Web fonts 02/08/14
  • 6. CSS Tips and Tricks for Designing Accessible Websites 02/08/14
  • 7. Objectives Understand the benefits of CSS Understand principles of liquid design and how it relates to accessibility Demonstrate simple techniques for using CSS to make websites more accessible List some useful resources 02/08/14
  • 8. Benefits of CSS CSS Helps Your Users
  Exercise greater control over how websites are presented.  Access websites on multiple media platforms: o o o o o Computer monitors Paper Projectors Screen readers for the blind Mobile phones 02/08/14
  • 9. CSS Helps You
 Save time by controlling the styles for your entire website with one file. Simplify your web documents. Reduce file sizes. 02/08/14
  • 10. Liquid Design Principles of Liquid Design  Layout elements are given relative sizes (usually percentages).  The page scales to fit any view port, no matter the resolution, screen size, or text size.  The user does not need to use the horizontal scroll bar. 02/08/14
  • 11. Liquid Design and Accessibility Liquid design helps your page “degrade gracefully.” The page displays properly even if the user: o Changes text size or screen resolution. o Views the page on an extra large monitor. o Disables style sheets. 02/08/14
  • 13. Style Sheets Each element on a page has a style defined for it. The style is defined by a set of attribute : value pairs. Style attributes can control: Typeface and font properties Background properties Box-related properties List properties 02/08/14
  • 14. Ways to define styles  Default style: provides values for all element properties, unless you change it. (Note: user can customize browser to change defaults!)  Inline style: style is defined as an attribute of the element in- place. Use this for “one-off” or special styles.  Embedded style sheet: styles defined in the head portion of web page. Use this if you don’t have very many web pages, or for styles that are useful only for the given page.  External style sheet: styles defined in a separate file. Use this to centralize style definitions and provide uniformity across all pages of a web site. 02/08/14
  • 15. Adding styles to pages 1. Inline CSS  handy, but don’t abuse it because it puts presentation back with the content 02/08/14
  • 16. Embedded Style Sheet <html> <head> <title>Page with embedded style</title> <style type="text/css"> selector { attribute : value ; attribute : value ... } selector { attribute : value ; attribute : value ... } ... ‱Style definitions go into a <style> element in document </style> head. </head> ‱Selector determines what elements the style rule applies to. </html> ‱Style definitions separated by ; are enclosed in { } 02/08/14
  • 17. Embedded Style Sheet (cont’d) <html> <head> <title>Page with embedded style</title> <style type="text/css"> selector { attribute : value ; attribute : value ... } selector { attribute : value ; attribute : value ... } ... </style> </head> ‱The type attribute can only be "text/css". (It is leaving room for future alternative style languages.) ... ‱Note: CSS is not HTML! </html> 02/08/14
  • 18. Example <html> <head> <title>Example page with embedded style</title> <style type="text/css"> body { font-family : sans-serif; color : blue; background-color : yellow } h1 { font-style : italic } p { font-size : 14pt } ol { font-size : 12pt; color : red; font-family : serif } </style> Here the selectors are simply tag names. The </head> style rules will apply to elements defined by ... those tags. Result (Example 1) </html> 02/08/14
  • 19. Adding styles to pages 3. External CSS    easier to read and modify downloaded once for all website pages separates content from presentation – the way to go sample_style.css 02/08/14 sample.html
  • 22. Inheritance  A descendant is an element that is enclosed (nested) in another, its ancestor. (If it is an immediate descendant, it is a child of the enclosing element, its parent. Elements having the same parent are siblings.)  All descendants of an element inherit its style properties, unless these are overridden by their own style rules.  If two styles could apply to the same element, the one defined by the more specific rule will be used. For instance, an explicit rule is always more specific than an inherited rule. 02/08/14
  • 23. Inheritance in CSS HTML documents are parsed into a document tree  Example: ‱ used when building CCS rules html body head title meta link h1 u l p li 02/08/14 li li ‱ some properties (e.g. font-family) are inherited from parents if not specified

Hinweis der Redaktion

  1. CSS is a language used to determine the formatting of an HTML document. Before we had CSS all of this information was encoded directly into the document. This was a mess. CSS fixed all that. Using separate style sheets for an entire site, leveraging semantic markup and identifiers like ids (for unique page elements) and classes (for multiple, like elements) a developer can apply styles across a whole site while updating a single (cacheable) file.