SlideShare a Scribd company logo
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
Fundamental of Web Development Tutorials-CSS by PINFO Technologies.pptx
PPTX
Cordova training - Day 2 Introduction to CSS 3
PDF
CSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
DOCX
PPTX
Module 2 CSS . cascading style sheet and its uses
PPTX
Css basics
PPTX
PPTX
CHAHATqwertyuiopasdfghjklzxcvbnmqwe.pptx
PDF
cashcading style sheet note for beginares
PPTX
PDF
PPT
cascading style sheet in web design .ppt
PPTX
Web technology Unit-II Part-C
PPT
PPTX
Introduction of css
PPT
Unit 2-CSS & Bootstrap.ppt
Fundamental of Web Development Tutorials-CSS by PINFO Technologies.pptx
Cordova training - Day 2 Introduction to CSS 3
CSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Module 2 CSS . cascading style sheet and its uses
Css basics
CHAHATqwertyuiopasdfghjklzxcvbnmqwe.pptx
cashcading style sheet note for beginares
cascading style sheet in web design .ppt
Web technology Unit-II Part-C
Introduction of css
Unit 2-CSS & Bootstrap.ppt

Recently uploaded (20)

PPT
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh
PPT
a decent way to describe Geometric Shapes.ppt
PDF
Applied Structural and Petroleum Geology Lec 1.pdf
PPTX
History of interior design- european and american styles.pptx
PDF
solar design by every detail p.d.f download
PPTX
The birth & Rise of python.pptx vaibhavd
PPTX
Riverfront Development_nashikcity_landscape
PDF
ALDO ROSSI AND MICHAEL GRAVES THEORY OF DESIGN-02 , PRESENTATION _TUSHARECHPL...
PDF
Shape Language for Character Design by Adhec Saputra
DOCX
Personalized Jewellery Guide: Engraved Rings, Initial Necklaces & Birthstones...
PPTX
UCSP-Powerpoint Presentation-Lesson-7.pptx
PDF
Top 10 UI/UX Design Agencies in Dubai Shaping Digital Experiences
PPTX
503ea471-f798-4324-90e8-275bdab41942.pptx
PPTX
hand painted lamp teaching pptx download
PPTX
Simple Business Pitch · SlidesMania 13.pptx
PPTX
knee & Ankle Joint Mobilization techniques.pptx
PPTX
Riverfront Development maharashtra nagpur
PDF
10 Real World Lessons and 4 Practical Tips for Large Group LSP Method
PDF
Africa 2025 - Prospects and Challenges first edition.pdf
PPTX
8Oe2l3FUJVImF34F988.pptxbbbvvvvvvvhhhhhh
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh
a decent way to describe Geometric Shapes.ppt
Applied Structural and Petroleum Geology Lec 1.pdf
History of interior design- european and american styles.pptx
solar design by every detail p.d.f download
The birth & Rise of python.pptx vaibhavd
Riverfront Development_nashikcity_landscape
ALDO ROSSI AND MICHAEL GRAVES THEORY OF DESIGN-02 , PRESENTATION _TUSHARECHPL...
Shape Language for Character Design by Adhec Saputra
Personalized Jewellery Guide: Engraved Rings, Initial Necklaces & Birthstones...
UCSP-Powerpoint Presentation-Lesson-7.pptx
Top 10 UI/UX Design Agencies in Dubai Shaping Digital Experiences
503ea471-f798-4324-90e8-275bdab41942.pptx
hand painted lamp teaching pptx download
Simple Business Pitch · SlidesMania 13.pptx
knee & Ankle Joint Mobilization techniques.pptx
Riverfront Development maharashtra nagpur
10 Real World Lessons and 4 Practical Tips for Large Group LSP Method
Africa 2025 - Prospects and Challenges first edition.pdf
8Oe2l3FUJVImF34F988.pptxbbbvvvvvvvhhhhhh

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