Cascading Style Sheets
Omer Simon
Salesforce Developer
06/03/17
Agenda
Overview - What is CSS?
How to Use
Basic Selectors and Properties
Outstanding Examples
Q&A
Overview
The web standards model includes HTML, CSS, and JavaScript.
HTML - Markup language composed of elements, which contain attributes (some optional and some
mandatory.) These elements are used to mark up the various different types of content in documents,
specifying what each bit of content is supposed to be rendered as in web browsers (for example headings,
paragraphs, tables, bulleted lists, etc.)
CSS - Gives you fine control over the formatting and layout of your document. CSS works on a system
of rules, which select the elements you want to style, and then set values for different properties of
the elements. You can change or add colors, backgrounds, font sizes and styles, and even position
things on your web page in different places.
JavaScript - The scripting language that you use to add behavior to your web pages. It can be used to
validate the data you enter into a form (tell you if it is in the right format or not), provide drag and drop
functionality, change styles on the fly, animate page elements such as menus, handle button functionality etc.
How To Use ?
A style sheet consists of a list of rules. Each rule or rule-set consists of one or more selectors and a declaration block.
In CSS, selectors declare which part of the markup a style applies to by matching tags and attributes in the markup itself.
Selectors may apply to:
● all elements of a specific type, e.g. the second-level headers h1
● elements specified by attribute, in particular:
● id: an identifier unique within the document
● class: an identifier that can annotate multiple elements in a document
● elements depending on how they are placed relative to others in the document tree.
Declaration block would look like that:
selector {
property: value;
property: value;
property: value;
property: value;
}
How To Use ?
How To Use ?
Properties:
width - sets the width of an element. width: 100% | width: 15px;
background-color - specifies the background color of an element. background-color: blue | background-color: #4286f4
text-align - specifies the horizontal alignment of text. text-align: left | text-align:center | text-align: right
border - border-width, border-style, and border-color. border: 5px solid red | border: 3px dotted black | border: dashed blue
Selectors:
selector:nth-child(n) - matches every element that is the nth child. div:nth-child(3) | p:nth-child(even)
selector:hover - is used to select elements when you mouse over them. div:hover | td:hover
Basic Selectors and Properties
Outstanding Examples
• The Simpsons
• Clouds
• Navigation Bar
• Website Example
Questions?
CSS introduction

More Related Content

PPT
CSS Introduction
PPSX
Introduction to css
PPT
Cascading Style Sheets (CSS) help
PPTX
Introducing Cascading Style Sheets
PPTX
Cascading Style Sheets (CSS)
PPTX
1 03 - CSS Introduction
PDF
Introduction to css
PPT
Introduction to CSS
CSS Introduction
Introduction to css
Cascading Style Sheets (CSS) help
Introducing Cascading Style Sheets
Cascading Style Sheets (CSS)
1 03 - CSS Introduction
Introduction to css
Introduction to CSS

What's hot (18)

PPTX
Week 12 CSS - Review from last week
PPT
Cascading Style Sheets
PPTX
Cascading style sheets (CSS)
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Cascading Style Sheet (CSS)
PPTX
CSS Basic Introduction, Rules, And Tips
PPTX
Introduction to CSS
ODP
Introduction to css & its attributes with syntax
PPTX
Introduction to CSS
PPTX
Complete Lecture on Css presentation
PPTX
Css ppt
PPTX
Web programming css
PPT
Cascading style sheet (css)]
PPTX
Beginners css tutorial for web designers
PPT
CSS
Week 12 CSS - Review from last week
Cascading Style Sheets
Cascading style sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheet (CSS)
CSS Basic Introduction, Rules, And Tips
Introduction to CSS
Introduction to css & its attributes with syntax
Introduction to CSS
Complete Lecture on Css presentation
Css ppt
Web programming css
Cascading style sheet (css)]
Beginners css tutorial for web designers
CSS
Ad

Viewers also liked (20)

PDF
Beyond Mobile: the disruptions that are next
PPT
PDF
Html / CSS Presentation
PPTX
EIA2016Nice - David Lamas. Paper prototyping: Why, when & how?
PDF
Rapid prototyping and sketching
PDF
[译]Efficient, maintainable CSS
PDF
CSS Power Tools
PDF
CSS: a rapidly changing world
PDF
Sketching, Wireframing, Prototyping - How to Be Agile and Avoid Half-Baked Us...
ODP
How to Make HTML and CSS Files
PPTX
HTML CSS | Computer Science
PDF
MHIT 603: Introduction to Prototyping
PPT
How Cascading Style Sheets (CSS) Works
PPTX
Chatter Actions - Short Version
PDF
Sketching & Prototyping UX (starting with stories)
PDF
CSS - OOCSS, SMACSS and more
PPTX
Cascading Style Sheets - CSS
PPTX
HTML, CSS and Java Scripts Basics
PPTX
Css grid-layout
PDF
Sketching & Prototyping
Beyond Mobile: the disruptions that are next
Html / CSS Presentation
EIA2016Nice - David Lamas. Paper prototyping: Why, when & how?
Rapid prototyping and sketching
[译]Efficient, maintainable CSS
CSS Power Tools
CSS: a rapidly changing world
Sketching, Wireframing, Prototyping - How to Be Agile and Avoid Half-Baked Us...
How to Make HTML and CSS Files
HTML CSS | Computer Science
MHIT 603: Introduction to Prototyping
How Cascading Style Sheets (CSS) Works
Chatter Actions - Short Version
Sketching & Prototyping UX (starting with stories)
CSS - OOCSS, SMACSS and more
Cascading Style Sheets - CSS
HTML, CSS and Java Scripts Basics
Css grid-layout
Sketching & Prototyping
Ad

Similar to CSS introduction (20)

PPTX
PPT
Cascading Style Sheets
PPTX
Cascading Style Sheets for web browser.pptx
PDF
CSS.pdf
PDF
Css tutorial
PDF
Css - Tutorial
PPTX
Module 2 CSS . cascading style sheet and its uses
PPTX
CASCADING STYLE SHEETS (CSS).pptx
PPTX
uptu web technology unit 2 Css
PPTX
Web Programming-css.pptx
PPTX
Introduction to CSS
PPTX
Casecading Style Sheets for Hyper Text Transfer Protocol.pptx
PDF
cashcading style sheet note for beginares
PDF
Csstutorial
PPTX
Cascading Styling Sheets(CSS) simple design language intended to transform th...
PPTX
chitra
PDF
Web app development_html_css_03
Cascading Style Sheets
Cascading Style Sheets for web browser.pptx
CSS.pdf
Css tutorial
Css - Tutorial
Module 2 CSS . cascading style sheet and its uses
CASCADING STYLE SHEETS (CSS).pptx
uptu web technology unit 2 Css
Web Programming-css.pptx
Introduction to CSS
Casecading Style Sheets for Hyper Text Transfer Protocol.pptx
cashcading style sheet note for beginares
Csstutorial
Cascading Styling Sheets(CSS) simple design language intended to transform th...
chitra
Web app development_html_css_03

Recently uploaded (20)

PPTX
Design_Thinking_intro[2].pptx design thinking intro
PPTX
antenna ppt basic antenna and its working
PDF
Interview Notes - C Studio 2025 - Character
PPTX
VADODARA URBAN ISSUE SOLUTION DONE LATEST
PDF
DLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCE
PPTX
History of Architecture - post modernism ass.pptx
PDF
ECO-FRIENDLY HONEYCOMB STRUCTURED BRICKS.pdf
DOCX
Making and Unmaking of Chandigarh -a city of Crisis..docx
PPTX
BOMBAY RAYON FASHIONS LIMITED.pp ghggtx
PPTX
Semiconductors-pn junction diodes.BJTpptx
PPTX
Succession Planning Project Proposal PowerPoint Presentation
PPTX
AI_presentation_AICT[1] [Read-Only].pptx
PDF
Valentina Vega de Seoane Rubí - Portfolio
DOCX
allianz arena munich case study of long span structure
PDF
Design - where does it belong - Aug 2025.pdf
PDF
What_is_the_impact_of_demography_on_high.pdf
PDF
C462831.pdf American Journal of Multidisciplinary Research and Review
PDF
TWO WAY FIXED EFFECT OF PRIORITY SECTOR LENDING (SECTOR WISE) ON NON PERFORMI...
PDF
GIT Module 1 Unit 5 (ITtrends).pdfgggggg
PPTX
AutoCAD Overview.pptx made by ai. It's takes 2 minutes to create this ppt.
Design_Thinking_intro[2].pptx design thinking intro
antenna ppt basic antenna and its working
Interview Notes - C Studio 2025 - Character
VADODARA URBAN ISSUE SOLUTION DONE LATEST
DLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCE
History of Architecture - post modernism ass.pptx
ECO-FRIENDLY HONEYCOMB STRUCTURED BRICKS.pdf
Making and Unmaking of Chandigarh -a city of Crisis..docx
BOMBAY RAYON FASHIONS LIMITED.pp ghggtx
Semiconductors-pn junction diodes.BJTpptx
Succession Planning Project Proposal PowerPoint Presentation
AI_presentation_AICT[1] [Read-Only].pptx
Valentina Vega de Seoane Rubí - Portfolio
allianz arena munich case study of long span structure
Design - where does it belong - Aug 2025.pdf
What_is_the_impact_of_demography_on_high.pdf
C462831.pdf American Journal of Multidisciplinary Research and Review
TWO WAY FIXED EFFECT OF PRIORITY SECTOR LENDING (SECTOR WISE) ON NON PERFORMI...
GIT Module 1 Unit 5 (ITtrends).pdfgggggg
AutoCAD Overview.pptx made by ai. It's takes 2 minutes to create this ppt.

CSS introduction

  • 1. Cascading Style Sheets Omer Simon Salesforce Developer 06/03/17
  • 2. Agenda Overview - What is CSS? How to Use Basic Selectors and Properties Outstanding Examples Q&A
  • 3. Overview The web standards model includes HTML, CSS, and JavaScript. HTML - Markup language composed of elements, which contain attributes (some optional and some mandatory.) These elements are used to mark up the various different types of content in documents, specifying what each bit of content is supposed to be rendered as in web browsers (for example headings, paragraphs, tables, bulleted lists, etc.) CSS - Gives you fine control over the formatting and layout of your document. CSS works on a system of rules, which select the elements you want to style, and then set values for different properties of the elements. You can change or add colors, backgrounds, font sizes and styles, and even position things on your web page in different places. JavaScript - The scripting language that you use to add behavior to your web pages. It can be used to validate the data you enter into a form (tell you if it is in the right format or not), provide drag and drop functionality, change styles on the fly, animate page elements such as menus, handle button functionality etc.
  • 4. How To Use ? A style sheet consists of a list of rules. Each rule or rule-set consists of one or more selectors and a declaration block. In CSS, selectors declare which part of the markup a style applies to by matching tags and attributes in the markup itself. Selectors may apply to: ● all elements of a specific type, e.g. the second-level headers h1 ● elements specified by attribute, in particular: ● id: an identifier unique within the document ● class: an identifier that can annotate multiple elements in a document ● elements depending on how they are placed relative to others in the document tree. Declaration block would look like that: selector { property: value; property: value; property: value; property: value; }
  • 7. Properties: width - sets the width of an element. width: 100% | width: 15px; background-color - specifies the background color of an element. background-color: blue | background-color: #4286f4 text-align - specifies the horizontal alignment of text. text-align: left | text-align:center | text-align: right border - border-width, border-style, and border-color. border: 5px solid red | border: 3px dotted black | border: dashed blue Selectors: selector:nth-child(n) - matches every element that is the nth child. div:nth-child(3) | p:nth-child(even) selector:hover - is used to select elements when you mouse over them. div:hover | td:hover Basic Selectors and Properties
  • 8. Outstanding Examples • The Simpsons • Clouds • Navigation Bar • Website Example