SlideShare a Scribd company logo
CSS 101
MPM107 Group Exercise
By, Bramwell Su
How Does CSS Work?
 CSS

= Cascading Style Sheets
 Uses multiple styles sheets to customize
the appearance of different web page
aspects
 Allows you to organize the content and
style separately
 CSS can be internally coded in HTML or
kept outside in an external style sheet
Essential Syntax







<Style></Style> - style tag signifies the
beginning and end of CSS code
Selector – the HTML element
Declaration – the piece of code that makes
the style, made up of the Property and Value
Property – the property of the HTML element
Value – the value of the property being
declared
Id vs. Class
 Id

properties are used to adjust styles for a
unique HTML element
 Class properties are used to adjust styles
for all HTML elements of the same class.

=
Different CSS Approaches




Inline Style - Very simple but not flexible
Internal Style – More Flexible but only applies to a single
web page
External Style – Most Powerful and can be used across
multiple pages

=

 What could
be in the
.css file
Box Model Layout



One of few layouts HTML elements can be autoarranged
Box Model allows us to “box-in” elements with
things like borders, padding and margins

=
Floating vs. Positioning





Floating is a more dynamic way to position elements, the browser will
automatic adjust its appearance
Floating is similar to how word-wrap works with images. It’ll go around the
image.
Positioning is a more absolute way to position elements, it is set according
to our instructions regardless of other elements
Positioning can also be used to overlap elements

=
Grouping vs. Nesting



Grouping – used to organize code, you can group
elements that share the same style
Nesting – used for settings styles on selectors within
selectors

=
Aligning Elements



Liking floating and positioning, you can set up
elements to align to different positions
Useful for dynamically adjusting to screen resolutions

=
Navigation Bars




CSS has built-in navigation styles
Can be used to create navigation bars/buttons for
HTML webpages
They basically function as a list of links

=
Image Gallery
 Using

everything explained previous you
can set up an Image Gallery with CSS

=
Work Cited






Weinman, Bill. CSS for Developers. Lynda.com,
12 Feb. 2010. Web. 15 Nov. 2013.
http://www.lynda.com/CSStutorials/Examining-three-ways-applystyle/52341/61631-4.html
CSS Tutorial. W3 Schools, n.d. Web. 15 Nov.
2013.
http://www.w3schools.com/css/default.asp
“Google Logo." Wikipedia: The Free
Encyclopedia. Wikimedia Foundation, Inc. 13
Nov. 2013. Web. 15 Nov. 2013.
http://en.wikipedia.org/wiki/Google_logo

More Related Content

PPT
Website development using dreamweaver
PPT
PPT
Streamlining Website Development in Dreamweaver
PPTX
Web programming css
PPTX
Styling your projects! leveraging css and r sass in r projects
PPTX
Introduction of css
PDF
Completing Your Design with WordPress
PPTX
Themes
Website development using dreamweaver
Streamlining Website Development in Dreamweaver
Web programming css
Styling your projects! leveraging css and r sass in r projects
Introduction of css
Completing Your Design with WordPress
Themes

What's hot (20)

PPTX
Styling of css
PPT
CSS, CSS Selectors, CSS Box Model
ODP
Srijan presentation on CSS
PDF
The Dark Arts of CSS
PDF
CSS Selectors
PPSX
Less - an Introduction
PDF
Your first HTML File
PPTX
Css box-model
PPT
Why less?
PPT
5.1 css box model
PDF
Drupal Site Building Checklist from DrupalCamp New Jersey
PPTX
Html tag presentation
PDF
Angular 2 Component styles
PPTX
Css external style sheet
PDF
Css introduction
PPTX
Welcome to css!
PDF
Css Preprocessors
PPTX
Less css
PDF
Creative Web 02 - HTML & CSS Basics
Styling of css
CSS, CSS Selectors, CSS Box Model
Srijan presentation on CSS
The Dark Arts of CSS
CSS Selectors
Less - an Introduction
Your first HTML File
Css box-model
Why less?
5.1 css box model
Drupal Site Building Checklist from DrupalCamp New Jersey
Html tag presentation
Angular 2 Component styles
Css external style sheet
Css introduction
Welcome to css!
Css Preprocessors
Less css
Creative Web 02 - HTML & CSS Basics
Ad

Similar to CSS 101 (20)

DOCX
Css Introduction
PPT
CSS Basics
PPTX
PPT
gdg_workshop 4 on web development HTML & CSS
PPTX
Cordova training - Day 2 Introduction to CSS 3
PPTX
Howcssworks 100207024009-phpapp01
KEY
Style With Kyle - Kyle Smith
PPT
How Cascading Style Sheets (CSS) Works
PPT
PPTX
css v1 guru
PDF
Evolution of CSS
PPTX
Lecture 5 & 6 Advance CSS.pptx for web
DOC
Art of css
PPT
Basic css
PDF
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
PPTX
css3.pptx
PDF
Style Your Site Part 1
PPT
CSS - Basics
PPT
CSS Introduction
Css Introduction
CSS Basics
gdg_workshop 4 on web development HTML & CSS
Cordova training - Day 2 Introduction to CSS 3
Howcssworks 100207024009-phpapp01
Style With Kyle - Kyle Smith
How Cascading Style Sheets (CSS) Works
css v1 guru
Evolution of CSS
Lecture 5 & 6 Advance CSS.pptx for web
Art of css
Basic css
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
css3.pptx
Style Your Site Part 1
CSS - Basics
CSS Introduction
Ad

Recently uploaded (20)

PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Lesson notes of climatology university.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Institutional Correction lecture only . . .
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Presentation on HIE in infants and its manifestations
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Pharma ospi slides which help in ospi learning
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
RMMM.pdf make it easy to upload and study
Module 4: Burden of Disease Tutorial Slides S2 2025
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
A systematic review of self-coping strategies used by university students to ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Lesson notes of climatology university.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cell Types and Its function , kingdom of life
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Institutional Correction lecture only . . .
Microbial diseases, their pathogenesis and prophylaxis
Presentation on HIE in infants and its manifestations
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
01-Introduction-to-Information-Management.pdf
Pharma ospi slides which help in ospi learning

CSS 101

  • 1. CSS 101 MPM107 Group Exercise By, Bramwell Su
  • 2. How Does CSS Work?  CSS = Cascading Style Sheets  Uses multiple styles sheets to customize the appearance of different web page aspects  Allows you to organize the content and style separately  CSS can be internally coded in HTML or kept outside in an external style sheet
  • 3. Essential Syntax      <Style></Style> - style tag signifies the beginning and end of CSS code Selector – the HTML element Declaration – the piece of code that makes the style, made up of the Property and Value Property – the property of the HTML element Value – the value of the property being declared
  • 4. Id vs. Class  Id properties are used to adjust styles for a unique HTML element  Class properties are used to adjust styles for all HTML elements of the same class. =
  • 5. Different CSS Approaches    Inline Style - Very simple but not flexible Internal Style – More Flexible but only applies to a single web page External Style – Most Powerful and can be used across multiple pages =  What could be in the .css file
  • 6. Box Model Layout   One of few layouts HTML elements can be autoarranged Box Model allows us to “box-in” elements with things like borders, padding and margins =
  • 7. Floating vs. Positioning     Floating is a more dynamic way to position elements, the browser will automatic adjust its appearance Floating is similar to how word-wrap works with images. It’ll go around the image. Positioning is a more absolute way to position elements, it is set according to our instructions regardless of other elements Positioning can also be used to overlap elements =
  • 8. Grouping vs. Nesting   Grouping – used to organize code, you can group elements that share the same style Nesting – used for settings styles on selectors within selectors =
  • 9. Aligning Elements   Liking floating and positioning, you can set up elements to align to different positions Useful for dynamically adjusting to screen resolutions =
  • 10. Navigation Bars    CSS has built-in navigation styles Can be used to create navigation bars/buttons for HTML webpages They basically function as a list of links =
  • 11. Image Gallery  Using everything explained previous you can set up an Image Gallery with CSS =
  • 12. Work Cited    Weinman, Bill. CSS for Developers. Lynda.com, 12 Feb. 2010. Web. 15 Nov. 2013. http://www.lynda.com/CSStutorials/Examining-three-ways-applystyle/52341/61631-4.html CSS Tutorial. W3 Schools, n.d. Web. 15 Nov. 2013. http://www.w3schools.com/css/default.asp “Google Logo." Wikipedia: The Free Encyclopedia. Wikimedia Foundation, Inc. 13 Nov. 2013. Web. 15 Nov. 2013. http://en.wikipedia.org/wiki/Google_logo