CSS (Cascadin Style Sheets)
CSS (Cascadin Style Sheets)
Web Engineering - I
Computer department
Khana-e-noor3 School
2023
What is CSS?
▷ 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
Why Use CSS?
▷ Selectors
▷ Box Model
▷ Backgrounds and Borders
▷ Image Values and Replaced
Content
▷ Text Effects
▷ 2D/3D Transformations
▷ Animations
▷ Multiple Column Layout
▷ User Interface
CSS Syntax
▷ Absolute
in, cm, mm, pt, pc
▷ Relative
em, ex, px, gd, rem, vw, vh, vm,
ch
CSS Backgrounds
The CSS background properties are
used to define the background effects
for elements.
▷ CSS background properties:
▷ background-color
▷ background-image
▷ background-repeat
▷ background-attachment
▷ background-position
CSS - Borders
▷ border-style
solid, dotted, dashed, double,
groove, ridge, inset, outset
▷ Border-width
▷ Border-color
▷ border-bottom-…..
▷ border-top- …..
▷ border-left- …..
▷ border-right- …..
CSS - Margins
▷ Margin
▷ margin-bottom
▷ margin-top
▷ margin-left
▷ margin-right
CSS - Paddings
▷ padding
▷ padding-bottom
▷ padding-top
▷ padding-left
▷ padding-right
CSS - Dimension
▷ Height
▷ Width
▷ line-height
▷ max-height
▷ min-height
▷ max-width
▷ min-width
CSS - Text
▷ color
▷ text-align
right, left, center, Justify
▷ text-decoration
none,underline, line-through, overline
▷ text-transform
capitalize, uppercase, lowercase
▷ white-space
pre, nowrap
▷ text-shadow
▷ text-indent
CSS - Text
▷ letter-spacing
▷ word-spacing
▷ line-height
▷ direction
rtl, ltr
CSS - Fonts
▷ font-family
▷ font-style
normal, italic, oblique
▷ font-variant
normal, small-caps
▷ font-weight
normal, bold
▷ font-size
▷ font
CSS - Links
▷ :link
▷ :visited
▷ :hover
▷ :active
CSS - Lists
▷ list-style-type
▷ list-style-position
▷ list-style-image
▷ list-style
CSS - Tables
▷ border-collapse
▷ border-spacing
▷ caption-side
▷ empty-cells
▷ table-layout
CSS - Outlines
▷ outline-width
▷ outline-style
▷ outline-color
▷ outline
CSS - Using Images
▷ Border
▷ height
▷ Width
▷ opacity
Display
▷ Inline
▷ Block
▷ None
CSS - Cursors
▷ Help
▷ Wait
▷ Pointer
overflow
▷ Visible
▷ Hidden
▷ Scroll
▷ auto
CSS - Positioning
▷ Static Positioning
▷ Relative Positioning
▷ Absolute Positioning
▷ Fixed Positioning
CSS - Pseudo Elements
▷ :first-line
▷ :first-letter
▷ :before
▷ :after
CSS3 -
Introduction
CSS3 - Rounded Corners
▷ border-radius
▷ border-top-left-radius
▷ border-top-right-radius
▷ border-bottom-right-radius
▷ border-bottom-left-radius
CSS3 - Multi
Background
▷ Background
▷ Background-image
▷ Background-color
▷ Background-position
▷ Background-attachment
CSS3 - Colors
▷ RGBA colors
▷ HSL colors
▷ HSLA colors
▷ Opacity
What is Gradients?
▷ Linear Gradients
▷ Radial Gradients
Linear gradients
▷ Top to bottom
▷ Left to right
▷ Diagonal
▷ Multi color
Radial Gradients
▷ closest-side
▷ farthest-side
▷ closest-corner
▷ farthest-corner
CSS3 - shadow
▷ Text shadow
▷ box shadow
CSS3 - Text
▷ Text-overflow
clip, ellipsis
Word Breaking
break-word, keep-all, break-all
CSS3 2D Transforms
▷ translate(10px,20px)
▷ rotate(20deg)
▷ scale(2,3)
▷ skewX(deg)
▷ skewY(deg)
▷ skew(deg)
▷ matrix()
CSS3 Transitions
▷ transition
▷ Transition-delay
▷ Transition-duration
▷ Transition-property
▷ Trnasition-timing-function
linear,ease,ease-in,ease-out,ease-
in-out
CSS3 3D Transforms
▷ rotateX()
▷ rotateY()
▷ rotateZ()
CSS3 - Animation
▷ @keyframes
▷ Animation
▷ animation-name
▷ animation-delay
▷ animation-direction
reverse|alternate|alternate-
reverse
▷ animation-duration
▷ animation-iteration-count
Responsive Web
Designing
Thanks!
Any questions?