CASCADING STYLE SHEET -Praveenram
INTRODUCTION
CSS stands for Cascading Style Sheets
CSS describes how HTML elements are to be displayed on screen,
paper, or in other media
CSS saves a lot of work. It can control the layout of multiple web
pages all at once
External stylesheet are stored in CSS files
WITHOUT CSS
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
CSS SYNTAX
CSS HOW TO...
Three Ways to Insert CSS
There are three ways of inserting a style sheet:
oExternal style sheet
oInternal style sheet
oInline style
EXTERNAL STYLESHEETS
mystyle.css
INTERNAL STYLESHEET
INLINE STYLESHEET
SELECTORS
o Classes ( . )
o .text-white{
color:white;
}
oID (#)
o #text-white{
color:white;
}
oTAG
o h1{
color:white;
}
oPseudo (:)
o .color:nth-child(1) {
color:white;
}
COLORS
BACKGROUND
BACKGROUND
BACKGROUND
BORDER
BORDER
BORDER
BORDER
BORDER
BORDER
MARGIN
MARGIN
PADDING
HEIGHT & WIDTH
HEIGHT & WIDTH
TEXT
TEXT-ALIGN
TEXT-ALIGN
TEXT-DECORATION
TEXT-TRANSFORM
FONT-STYLE
FONT-SIZE
FONT
ICONS
LINKS
Cascading style sheet

Cascading style sheet