SlideShare a Scribd company logo
PRESENTATION SUMMARY
-> What is CSS ?
-> CSS and HTML
-> The Box Model.
-> Style Sheet Implementation.
-> CSS Rule Structure.
-> HTML and DIV’s.
-> Common CSS properties.
WHAT IS CSS ?
Css stands for cascading style sheet.
It is not a language. It is a pat of
design. CSS is a heart of HTML.
Typical CSS file is a text file with an
extension “.CSS” and contain a
series of commands.
HTML WITHOUT CSS:-
“Html without CSS is like a piece of candy without
a pretty wrapper.”
Without CSS, HTML elements typically flow from
top to bottom of the page and position
themselves to the left by default .
With CSS help, we can create containers or DIV’s
to better organize content and make a Web page
visually appealing.
CSS AND HTML:-
(a)HTML and CSS work together to
produce beautiful and functional Web
sites.
(b) HTML= Structure
(c) CSS= Style
THE BOX MODEL:-
CSS works on the box model. A typical
Web page consists of many boxes joined
together from top to bottom . These boxes
can be stacked nested, and float.
ATTACHING A STYLE SHEET:-
Attach a style sheet to a page by adding the code to the
<head>
Section of the HTML page. There are 3 ways to attach CSS
to a page:
1.External style sheet:- Best used to control styling
on multiple pages.
<link href=“css/style.css” type=“text/css”
rel=“stylesheet”/>
2.Internal style sheet:-Best used to control
styling in the page.
<style type=“type=“text/css”>
H1 { color : red }
</style>
3.Inline Style Sheet:- CSS is not attached in the
<header> but is used directly within HTML tages.
<p style=“color : red”> Some Text </p>
CSS RULE STRUCTURE:-
A CSS RULE is made up of a selector and a declaration. A
declaration consists of property and value.
Selector { property : value ; }
Declaration
SELECTOR:-
A selector, here in green, is often an element of
HTML.
body { property : value; }
h1 { property : value; }
em { property : value; }
p { property : value; }
PROPERTIES AND VALUES:-
body { background ; purple; }
h1 { color : green; }
h2 { font-size: large ; }
p { color : #FFF ; }
Properties and Values tell an HTML elements how to display.
body
{
background : purple ;
color : green ;
}
COMMENT IN CSS:-
. Explain the purpose of the coding.
. Help others read and understand the code.
. Server as a reminder to you for what it all
means.
. Starts with /* and ends with */.
TYPICAL WEB PAGE:-
TYPICAL WEB PAGE (HTML)
Typical HTML Web page is made up of containers(boxes)
or DIV’s. Each DIV is assigned an ID or a class.
<div id =“ container”>
<div id=“ header”> Insert Tittle </div>
<div id=“ main”> content
<div id=“ menu ”> content </div>
</div>
<div id=“ footer ”> content </div>
</div>
TYPICAL WEB PAGE (CSS)
The CSS file users t he same DIV / I D / C LASS
names as the HTML and uses them to style
the elements.
# container { property : value ; }
# menu { property : value ; }
# main { property : value ; }
# footer { property : value ; }
IDS AND CLASSES:-
. IDs (#) are unique and can only be used once on
the page.
. Classes ( . ) can be used as many times needed.
HTML codes:-
<h1 id =“ main heading”> Names</h1>
<p class =“name”>xyz</p>
CSS codes:-
#main heading { color : green}
.name { color :red}
CSS BOX PROPERTIES:-
. Background-color
. Width
. Padding
. Margin
. Border-width
. Border color
. Border-style
. Background-image
BACKGROUND COLOR:-
The background-color property specifies
the background color of an element.
Example
body {
background-color: light blue;
}
BACKGROUND IMAGE
The background-image property specifies an image
to use as the background of an element.
By default, the image is repeated so it covers the
entire element.
Example:-
body {
background-image: url("paper.gif");
}
CSS BORDER STYLE:-
The border-style property specifies what kind of border to
display.
The following values are allowed:
-dotted - Defines a dotted border
-dashed - Defines a dashed border
-solid - Defines a solid border
-double - Defines a double border
-none - Defines no border
-hidden - Defines a hidden border
CSS BORDER COLOR:-
The border-color property is used to set the color of the
four borders.
The color can be set by:
name - specify a color name, like "red"
Hex - specify a hex value, like "#ff0000"
Example
p.one {
border-style: solid;
border-color: red;
}
CSS HEIGHT AND WIDTH:-
The height and width properties are used to set the
height and width of an element.
The height and width can be set to auto (this is
default. Means that the browser calculates the
height and width), or be specified in length
values, like px, cm, etc., or in percent (%) of the
containing block.
Example:-
div {
width: 500px;
height: 100px;
border: 3px solid #73AD21;
}
CSS MARGIN:-
The CSS margin properties set the size of the white
space OUTSIDE the border.
CSS has properties for specifying the margin for each side
of an element:
-margin-top
-margin-right
-margin-bottom
-margin-left
CSS PADDING:-
The CSS padding properties define the white space between the
element content and the element border.
The padding clears an area around the content (inside the
border) of an element.
CSS has properties for specifying the padding for each side of an element:
-padding-top
-padding-right
-padding-bottom
-padding-left
CSS FONTS:-
The CSS font properties define the font family, boldness,
size, and the style of a text.
(a) CSS Font Families:-
In CSS, there are two types of font family names:
generic family - a group of font families with a similar look
(like "Serif" or "Monospace")
font family - a specific font family (like "Times New
Roman" or "Arial")
(b) Font Family:-
The font family of a text is set with the font-
family property.
Example
p {
font-family: "Times New Roman", Times, serif;
}
(c) Font Style:-
The font-style property is mostly used to specify italic text.
This property has three values:
normal - The text is shown normally
italic - The text is shown in italics
Example:-
p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
(d) Font Size:-
The font-size property sets the size of the text.
Always use the proper HTML tags, like <h1> -
<h6> for headings and <p> for paragraphs.
ADVANTAGES OF CSS:-
-Easier to maintain and update.
-Greater consistency in design.
-More formatting options.
-Lightweight code.
-Faster download times.
-Search engine optimization benefits.
-Ease of presenting different styles to different
viewers.
-Greater accessibility.
Thank you

More Related Content

What's hot

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Doris Chen
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Css
CssCss
Css Basics
Css BasicsCss Basics
Css Basics
Jay Patel
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
Webtech Learning
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
CSS
CSSCSS
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
vijayta
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
fantasticdigitaltools
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
Rachel Andrew
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
Biswadip Goswami
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Folasade Adedeji
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Prarthan P
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 

What's hot (20)

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Css
CssCss
Css
 
CSS
CSSCSS
CSS
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
CSS
CSSCSS
CSS
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 

Viewers also liked

Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
Css from scratch
Css from scratchCss from scratch
Css from scratch
Ahmad Al-ammar
 
OBIEE: How to change dashboard background color or add background image
OBIEE: How to change dashboard background color or add background imageOBIEE: How to change dashboard background color or add background image
OBIEE: How to change dashboard background color or add background image
Mohamed Attia
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
Naga Harish M
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
Hushnag Gaikwad
 
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer CentreHTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
jatin batra
 
Web designing
Web designingWeb designing
Web designing
Avinash Malhotra
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Joseph Lewis
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Modular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS WorkshopModular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS Workshop
Shay Howe
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
Nosheen Qamar
 

Viewers also liked (20)

Css Ppt
Css PptCss Ppt
Css Ppt
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Css
CssCss
Css
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
Css from scratch
Css from scratchCss from scratch
Css from scratch
 
OBIEE: How to change dashboard background color or add background image
OBIEE: How to change dashboard background color or add background imageOBIEE: How to change dashboard background color or add background image
OBIEE: How to change dashboard background color or add background image
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
 
Casc Style Sheets Ii
Casc Style Sheets IiCasc Style Sheets Ii
Casc Style Sheets Ii
 
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer CentreHTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
 
Web designing
Web designingWeb designing
Web designing
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Modular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS WorkshopModular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS Workshop
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
 
Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
 

Similar to Css ppt

WT CSS
WT  CSSWT  CSS
WT CSS
Mohan186867
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layoutCK Yang
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
VarunMM2
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
VarunMM2
 
html-css
html-csshtml-css
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
Meenakshi Paul
 
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.ECSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
NavyaEnugala
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
Dr.Lokesh Gagnani
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
JohnpaulStem11
 
CSS Cascading Style Sheet Introduction slides
CSS Cascading Style Sheet Introduction slidesCSS Cascading Style Sheet Introduction slides
CSS Cascading Style Sheet Introduction slides
Aasma13
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
UsamaShakeel22
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
PramenathA
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
JohnSon872476
 

Similar to Css ppt (20)

WT CSS
WT  CSSWT  CSS
WT CSS
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
html-css
html-csshtml-css
html-css
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.ECSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 
css1.ppt
css1.pptcss1.ppt
css1.ppt
 
Css
CssCss
Css
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
CSS Cascading Style Sheet Introduction slides
CSS Cascading Style Sheet Introduction slidesCSS Cascading Style Sheet Introduction slides
CSS Cascading Style Sheet Introduction slides
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 

Recently uploaded

Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
h7j5io0
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
7sd8fier
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 

Recently uploaded (20)

Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 

Css ppt

  • 1.
  • 2. PRESENTATION SUMMARY -> What is CSS ? -> CSS and HTML -> The Box Model. -> Style Sheet Implementation. -> CSS Rule Structure. -> HTML and DIV’s. -> Common CSS properties.
  • 3. WHAT IS CSS ? Css stands for cascading style sheet. It is not a language. It is a pat of design. CSS is a heart of HTML. Typical CSS file is a text file with an extension “.CSS” and contain a series of commands.
  • 4. HTML WITHOUT CSS:- “Html without CSS is like a piece of candy without a pretty wrapper.” Without CSS, HTML elements typically flow from top to bottom of the page and position themselves to the left by default . With CSS help, we can create containers or DIV’s to better organize content and make a Web page visually appealing.
  • 5. CSS AND HTML:- (a)HTML and CSS work together to produce beautiful and functional Web sites. (b) HTML= Structure (c) CSS= Style
  • 6. THE BOX MODEL:- CSS works on the box model. A typical Web page consists of many boxes joined together from top to bottom . These boxes can be stacked nested, and float.
  • 7. ATTACHING A STYLE SHEET:- Attach a style sheet to a page by adding the code to the <head> Section of the HTML page. There are 3 ways to attach CSS to a page: 1.External style sheet:- Best used to control styling on multiple pages. <link href=“css/style.css” type=“text/css” rel=“stylesheet”/>
  • 8. 2.Internal style sheet:-Best used to control styling in the page. <style type=“type=“text/css”> H1 { color : red } </style> 3.Inline Style Sheet:- CSS is not attached in the <header> but is used directly within HTML tages. <p style=“color : red”> Some Text </p>
  • 9. CSS RULE STRUCTURE:- A CSS RULE is made up of a selector and a declaration. A declaration consists of property and value. Selector { property : value ; } Declaration
  • 10. SELECTOR:- A selector, here in green, is often an element of HTML. body { property : value; } h1 { property : value; } em { property : value; } p { property : value; }
  • 11. PROPERTIES AND VALUES:- body { background ; purple; } h1 { color : green; } h2 { font-size: large ; } p { color : #FFF ; } Properties and Values tell an HTML elements how to display. body { background : purple ; color : green ; }
  • 12. COMMENT IN CSS:- . Explain the purpose of the coding. . Help others read and understand the code. . Server as a reminder to you for what it all means. . Starts with /* and ends with */.
  • 14. TYPICAL WEB PAGE (HTML) Typical HTML Web page is made up of containers(boxes) or DIV’s. Each DIV is assigned an ID or a class. <div id =“ container”> <div id=“ header”> Insert Tittle </div> <div id=“ main”> content <div id=“ menu ”> content </div> </div> <div id=“ footer ”> content </div> </div>
  • 15. TYPICAL WEB PAGE (CSS) The CSS file users t he same DIV / I D / C LASS names as the HTML and uses them to style the elements. # container { property : value ; } # menu { property : value ; } # main { property : value ; } # footer { property : value ; }
  • 16. IDS AND CLASSES:- . IDs (#) are unique and can only be used once on the page. . Classes ( . ) can be used as many times needed. HTML codes:- <h1 id =“ main heading”> Names</h1> <p class =“name”>xyz</p> CSS codes:- #main heading { color : green} .name { color :red}
  • 17. CSS BOX PROPERTIES:- . Background-color . Width . Padding . Margin . Border-width . Border color . Border-style . Background-image
  • 18. BACKGROUND COLOR:- The background-color property specifies the background color of an element. Example body { background-color: light blue; }
  • 19. BACKGROUND IMAGE The background-image property specifies an image to use as the background of an element. By default, the image is repeated so it covers the entire element. Example:- body { background-image: url("paper.gif"); }
  • 20. CSS BORDER STYLE:- The border-style property specifies what kind of border to display. The following values are allowed: -dotted - Defines a dotted border -dashed - Defines a dashed border -solid - Defines a solid border -double - Defines a double border -none - Defines no border -hidden - Defines a hidden border
  • 21. CSS BORDER COLOR:- The border-color property is used to set the color of the four borders. The color can be set by: name - specify a color name, like "red" Hex - specify a hex value, like "#ff0000" Example p.one { border-style: solid; border-color: red; }
  • 22. CSS HEIGHT AND WIDTH:- The height and width properties are used to set the height and width of an element. The height and width can be set to auto (this is default. Means that the browser calculates the height and width), or be specified in length values, like px, cm, etc., or in percent (%) of the containing block. Example:- div { width: 500px; height: 100px; border: 3px solid #73AD21; }
  • 23. CSS MARGIN:- The CSS margin properties set the size of the white space OUTSIDE the border. CSS has properties for specifying the margin for each side of an element: -margin-top -margin-right -margin-bottom -margin-left
  • 24. CSS PADDING:- The CSS padding properties define the white space between the element content and the element border. The padding clears an area around the content (inside the border) of an element. CSS has properties for specifying the padding for each side of an element: -padding-top -padding-right -padding-bottom -padding-left
  • 25. CSS FONTS:- The CSS font properties define the font family, boldness, size, and the style of a text. (a) CSS Font Families:- In CSS, there are two types of font family names: generic family - a group of font families with a similar look (like "Serif" or "Monospace") font family - a specific font family (like "Times New Roman" or "Arial")
  • 26. (b) Font Family:- The font family of a text is set with the font- family property. Example p { font-family: "Times New Roman", Times, serif; }
  • 27. (c) Font Style:- The font-style property is mostly used to specify italic text. This property has three values: normal - The text is shown normally italic - The text is shown in italics Example:- p.normal { font-style: normal; } p.italic { font-style: italic; }
  • 28. (d) Font Size:- The font-size property sets the size of the text. Always use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
  • 29. ADVANTAGES OF CSS:- -Easier to maintain and update. -Greater consistency in design. -More formatting options. -Lightweight code. -Faster download times. -Search engine optimization benefits. -Ease of presenting different styles to different viewers. -Greater accessibility.