SlideShare a Scribd company logo
CSS3
Cascading StyleSheets
Before we begin...
● Everyone’s CSS is different
● We will try to cover as much as possible
● Download the source code
What is CSS?
● Cascading StyleSheets
● NOT a Programming Language
● Stylesheet/Styling Language
● Used for Website Layout and Design
● Can be extended with SASS/LESS
What we need to start
A Web Browser(Pick One)
● Google Chrome
● Mozilla Firefox
● Safari
● Microsoft Edge
● IE (Please Don’t)
A Text Editor(Pick One)
● Sublime Text
● Atom.io
● Visual Studio Code
● Notepad++ (Windows)
● Text Mate (Mac)
3 methods for adding CSS
Inline CSS: Directly in the HTML element ( NO! )
Internal CSS: Use <style> tags within a single document
External CSS: Linking an external CSS
CSS Selectors
a { background-color : yellow ; }
selector
property-name
value
declaration start property/value
separator
declaration end
Colors in CSS
● Color Names
● HTML5 color names
● Hexadecimal
● RGB
body{
color: red;
background: coral;
}
h1{
color: #00ff00;
}
p{
rgb(0,0,255);
}
Web Safe Fonts
font-family Arial, Helvetica, sans-serif
font-family "Arial Black", Gadget, sans-serif
font-family "Bookman Old Style", serif
font-family "Comic Sans MS", cursive, sans-serif
font-family Courier, monospace
font-family "Courier New", Courier, monospace
font-family Garamond, serif
font-family Georgia, serif
font-family Impact, Charcoal, sans-serif
font-family "Lucida Console", Monaco, monospace
font-family "Lucida Sans Unicode", "Lucida Grande", sans-
serif
font-family "MS Sans Serif", Geneva, sans-serif
font-family "MS Serif", "New York", sans-serif
font-family "Palatino Linotype", "Book Antiqua",
Palatino, serif
font-family Symbol, sans-serif
font-family Tahoma, Geneva, sans-serif
font-family "Times New Roman", Times, serif
font-family "Trebuchet MS", Helvetica, sans-serif
font-family Verdana, Geneva, sans-serif
font-family Webdings, sans-serif
font-family Wingdings, "Zapf Dingbats", sans-serif
Unit Types
● Pixels (px) : Unit that represents pixels on a device
● Point (pt) : Used in print media in which 72 points equals 1 inch
● Ems (em) : An em is equal to the current font size
● Percent (%) : The current font size is equal to 100%
Block Elements
● p
● h1, h2, h3, h4, h5, h6
● ol, ul
● pre
● address
● blockquote
● dl
● div
● fieldset
● form
● hr
● noscript
● table
Inline Elements
● b, big, i, small, tt
● abbr, acronym, cite, code, dfn, em, kbd, strong, samp, var
● a, bdo, br, img, map, object, q, script, span, sub, sup
● button, input, label, select, textarea
Box Model

More Related Content

PDF
Girls Can Code East Brunswick Workshop Notes
PDF
Girls Can Code East Brunswick Workshop Slides
PDF
CSS Introduction
PDF
The Dark Arts of CSS
PPT
PHP - Introduction to PHP CSS
PDF
Fundamental CSS3
PPTX
PPTX
Girls Can Code East Brunswick Workshop Notes
Girls Can Code East Brunswick Workshop Slides
CSS Introduction
The Dark Arts of CSS
PHP - Introduction to PHP CSS
Fundamental CSS3

What's hot (13)

PDF
[Worskhop Summits] CSS3 Workshop
KEY
Intro to SASS CSS
PDF
Introduction to CSS3
PPTX
Web development using HTML and CSS
PPTX
Web programming css
PPT
INFO3775 Chapter 2 Part 2
PPTX
Introduction to HTML and CSS
PPTX
Css3 Presetation
ODP
Cascading Style Sheets - Part 02
PPTX
CSS introduction
PDF
CSS3 Introduction
PPT
[Worskhop Summits] CSS3 Workshop
Intro to SASS CSS
Introduction to CSS3
Web development using HTML and CSS
Web programming css
INFO3775 Chapter 2 Part 2
Introduction to HTML and CSS
Css3 Presetation
Cascading Style Sheets - Part 02
CSS introduction
CSS3 Introduction
Ad

Similar to CSS - Cascading Style Sheets (20)

PDF
Web Typography
PPTX
Design Concepts and Web Design
ODP
HTML5, CSS, JavaScript Style guide and coding conventions
PDF
Pemrograman Web 3 - CSS Basic Part 2
PPTX
Rakshat bhati
PDF
Design for developers (april 25, 2017)
KEY
WEB and FONTS
PPTX
SignWriting Stack 2015
ODP
Css3 101
KEY
Sass compass
PDF
ATO- Intro to Web Concepts
PPTX
SIGNWRITING SYMPOSIUM PRESENTATION 43: The SignWriting Stack 2015 by Stephen ...
PDF
Introduction to CSS
PDF
Great typography == Great Design - Part 2
PDF
Css preprocessor-140606115334-phpapp01
PDF
CSS preprocessor: why and how
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PDF
Typography On The Web
PPTX
Web Engineering
Web Typography
Design Concepts and Web Design
HTML5, CSS, JavaScript Style guide and coding conventions
Pemrograman Web 3 - CSS Basic Part 2
Rakshat bhati
Design for developers (april 25, 2017)
WEB and FONTS
SignWriting Stack 2015
Css3 101
Sass compass
ATO- Intro to Web Concepts
SIGNWRITING SYMPOSIUM PRESENTATION 43: The SignWriting Stack 2015 by Stephen ...
Introduction to CSS
Great typography == Great Design - Part 2
Css preprocessor-140606115334-phpapp01
CSS preprocessor: why and how
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Typography On The Web
Web Engineering
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Electronic commerce courselecture one. Pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25-Week II
A comparative analysis of optical character recognition models for extracting...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
cuic standard and advanced reporting.pdf
Machine Learning_overview_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Programs and apps: productivity, graphics, security and other tools
Electronic commerce courselecture one. Pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Machine learning based COVID-19 study performance prediction
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology

CSS - Cascading Style Sheets

  • 2. Before we begin... ● Everyone’s CSS is different ● We will try to cover as much as possible ● Download the source code
  • 3. What is CSS? ● Cascading StyleSheets ● NOT a Programming Language ● Stylesheet/Styling Language ● Used for Website Layout and Design ● Can be extended with SASS/LESS
  • 4. What we need to start A Web Browser(Pick One) ● Google Chrome ● Mozilla Firefox ● Safari ● Microsoft Edge ● IE (Please Don’t) A Text Editor(Pick One) ● Sublime Text ● Atom.io ● Visual Studio Code ● Notepad++ (Windows) ● Text Mate (Mac)
  • 5. 3 methods for adding CSS Inline CSS: Directly in the HTML element ( NO! ) Internal CSS: Use <style> tags within a single document External CSS: Linking an external CSS
  • 6. CSS Selectors a { background-color : yellow ; } selector property-name value declaration start property/value separator declaration end
  • 7. Colors in CSS ● Color Names ● HTML5 color names ● Hexadecimal ● RGB body{ color: red; background: coral; } h1{ color: #00ff00; } p{ rgb(0,0,255); }
  • 8. Web Safe Fonts font-family Arial, Helvetica, sans-serif font-family "Arial Black", Gadget, sans-serif font-family "Bookman Old Style", serif font-family "Comic Sans MS", cursive, sans-serif font-family Courier, monospace font-family "Courier New", Courier, monospace font-family Garamond, serif font-family Georgia, serif font-family Impact, Charcoal, sans-serif font-family "Lucida Console", Monaco, monospace font-family "Lucida Sans Unicode", "Lucida Grande", sans- serif font-family "MS Sans Serif", Geneva, sans-serif font-family "MS Serif", "New York", sans-serif font-family "Palatino Linotype", "Book Antiqua", Palatino, serif font-family Symbol, sans-serif font-family Tahoma, Geneva, sans-serif font-family "Times New Roman", Times, serif font-family "Trebuchet MS", Helvetica, sans-serif font-family Verdana, Geneva, sans-serif font-family Webdings, sans-serif font-family Wingdings, "Zapf Dingbats", sans-serif
  • 9. Unit Types ● Pixels (px) : Unit that represents pixels on a device ● Point (pt) : Used in print media in which 72 points equals 1 inch ● Ems (em) : An em is equal to the current font size ● Percent (%) : The current font size is equal to 100%
  • 10. Block Elements ● p ● h1, h2, h3, h4, h5, h6 ● ol, ul ● pre ● address ● blockquote ● dl ● div ● fieldset ● form ● hr ● noscript ● table
  • 11. Inline Elements ● b, big, i, small, tt ● abbr, acronym, cite, code, dfn, em, kbd, strong, samp, var ● a, bdo, br, img, map, object, q, script, span, sub, sup ● button, input, label, select, textarea