The document provides an introduction to CSS and SASS including definitions of HTML, CSS, CSS syntax, selectors, properties, and other CSS concepts. It defines HTML as a markup language and CSS as used to style and lay out HTML elements. It describes common CSS concepts like selectors, properties, values, and ways to attach CSS like inline, embedded and external stylesheets.
Overview of CSS (Cascading Style Sheets) and SASS (Syntactically Awesome Style Sheets) as styling tools.
Definition and function of HTML (Hyper Text Markup Language) as a markup language for web content.
Explanation of CSS (Cascading Style Sheets) and its purpose in styling HTML elements.
Detailed exploration of CSS syntax, including selectors, properties, and declarations with examples.
Definition of CSS selectors and their types for selecting HTML elements, including id and class selectors.Methods to integrate CSS into HTML: Inline styles, embedded styles, and linking external stylesheets.
Discussion of list types in HTML, including ordered and unordered lists with examples.
Explanation of CSS margin properties and their effect on element spacing.Description of padding properties, defining the space between element borders and content.
Usage and distinctions of CSS padding and margin with practical examples.Overview of CSS font properties defining font styles like family, weight, and size.
Text styling properties in CSS including color, spacing, decoration, and shadows.
Introduction to CSS pseudo-classes for styling elements based on their states.
CSS background properties that define colors, images, repeats, attachments, and positioning.
Overview of CSS positioning methods including static, fixed, relative, and absolute.
Introduction to CSS float property for element positioning and flow control.
Discussion on display and visibility properties for managing element presentation in CSS.
CSS opacity property to control transparency of images and elements.
Explanation of image sprites and their benefits in reducing server requests for images.
Usage of @media rule for responsive design tailored for different devices.Overview of SASS as a CSS preprocessor, its syntax, and compilation into CSS.
Advantages of using SASS such as variables, mixins, and efficient styling practices.
Explanation of SCSS syntax structure and definitions with visual examples.
Comparative overview of SCSS and SASS with practical coding examples.
Usage of SASS extend to reduce redundant CSS with placeholder selectors.
Definition and examples of SASS mixins for reusable styles and parameters.
Comparison and application of mixins vs extend in organizing styles.
Recommendations for CSS and SASS resources, including websites and tutorials.
Thank you note and invitation for questions, providing contact information.
• CSS standsfor Cascading Style Sheets
What is CSS?
10.
• CSS standsfor Cascading Style Sheets
• Styles define how to display HTML elements
What is CSS?
11.
• CSS standsfor Cascading Style Sheets
• Styles define how to display HTML elements
• CSS can solve many design problems without
adding images or changing the HTML
What is CSS?
CSS Selectors
• CSSselectors allow you to select and manipulate
HTML element(s).
27.
CSS Selectors
• CSSselectors allow you to select and manipulate
HTML element(s).
• CSS selectors are used to "find" (or select) HTML
elements based on their id, classes, types,
attributes, and more.
Types of CSSSelectors
• The element Selector selects elements based on the
element name. (e.g. body, header, p, footer)
30.
Types of CSSSelectors
• The element Selector selects elements based on the
element name. (e.g. body, header, p, footer)
• The id Selector selects a specific element on the page and
can only be used once (e.g. #main, #content, #footer)
31.
Types of CSSSelectors
• The element Selector selects elements based on the
element name. (e.g. body, header, p, footer)
• The id Selector selects a specific element on the page and
can only be used once (e.g. #main, #content, #footer)
• The class Selector selects elements with the specific class
names and cans be reused
(e.g. .wrapper, .column, .panel, .panel-pane)
Ways to useCSS
• CSS can be attached to HTML in 3 ways
• Inline (wysiwyg for example)
• Embedded (wysiwyg for example)
• Links CSS files (the preferred method)
Ways to useCSS
<head>!
<link rel="stylesheet"
type="text/css" href=“style.css">!
</head>
External Style Sheet reference
p {color:red;}
style.css
48.
Ways to useCSS
<head>!
<link rel="stylesheet"
type="text/css" href=“style.css">!
</head>
External Style Sheet reference
Some Text
Result
p {color:red;}
style.css
49.
Ways to useCSS
<head>!
<link rel="stylesheet"
type="text/css" href=“style.css">!
</head>
External Style Sheet reference
Some Text
Result
p {color:red;}
style.css
CSS Lists
• InHTML, there are two types of lists:
• unordered lists - the list items are marked with
bullets
53.
CSS Lists
• InHTML, there are two types of lists:
• unordered lists - the list items are marked with
bullets
• ordered lists - the list items are marked with
numbers or letters
54.
CSS Lists
• InHTML, there are two types of lists:
• unordered lists - the list items are marked with
bullets
• ordered lists - the list items are marked with
numbers or letters
• Fusce cursus ante a sem egestas.
• Maecenas at lectus vitae libero
• Mauris lobortis enim vitae
• scelerisque.
• Aliquam adipiscing tellus
unordered list
55.
CSS Lists
• InHTML, there are two types of lists:
• unordered lists - the list items are marked with
bullets
• ordered lists - the list items are marked with
numbers or letters
• Fusce cursus ante a sem egestas.
• Maecenas at lectus vitae libero
• Mauris lobortis enim vitae
• scelerisque.
• Aliquam adipiscing tellus
unordered list
1. Fusce cursus ante a sem egestas.
2. Maecenas at lectus vitae libero
3. Mauris lobortis enim vitae
4. scelerisque.
5. Aliquam adipiscing tellus
ordered list
CSS Margin
• Marginis the space around elements (outside the
border).
• The margin does not have a background color,
and is completely transparent.
59.
CSS Margin
• Marginis the space around elements (outside the
border).
• The margin does not have a background color,
and is completely transparent.
• The top, right, bottom, and left margin can be
changed independently using separate properties.
CSS Padding
• Paddingis the space between the element
border and the element content
65.
CSS Padding
• Paddingis the space between the element
border and the element content
• The top, right, bottom, and left padding can be
changed independently using separate
properties.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
76.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
77.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
78.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
79.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
• font-style Specifies the font style for text (e.g. normal or
italic)
80.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
• font-style Specifies the font style for text (e.g. normal or
italic)
• font-variant Specifies if text should be small-caps
81.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
• font-style Specifies the font style for text (e.g. normal or
italic)
• font-variant Specifies if text should be small-caps
• font-weight Specifies the weight of a font
82.
CSS Fonts
• CSSfont properties define the font family, boldness, size,
and the style of a text.
• Not all computers have the same fonts installed
• font-family Specifies the font family for text
• font-size Specifies the font size of text
• font-style Specifies the font style for text (e.g. normal or
italic)
• font-variant Specifies if text should be small-caps
• font-weight Specifies the weight of a font
• font Sets all the font properties in one declaration
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
90.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
91.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
92.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
• text-indent specifies the indentation of the first line
93.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
• text-indent specifies the indentation of the first line
• text-shadow specifies the shadow effect
94.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
• text-indent specifies the indentation of the first line
• text-shadow specifies the shadow effect
• text-transform controls the capitalization of text
95.
CSS Text
• colorsets the color of text
• letter-spacing adjusts the space between characters
• line-height sets the distance between lines of text
• text-decoration specifies the decoration
• text-indent specifies the indentation of the first line
• text-shadow specifies the shadow effect
• text-transform controls the capitalization of text
• word-spacing changes the space between words
96.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
CSS Text
97.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
p {font-family:Georgia Times serif;}
CSS Text
98.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
p {font-family:Georgia Times serif;}
a {color:$blue; text-decoration:underline;}
CSS Text
99.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
p {font-family:Georgia Times serif;}
a {color:$blue; text-decoration:underline;}
.quote {color:$red; font-style:italic;}
CSS Text
100.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
p {font-family:Georgia Times serif;}
a {color:$blue; text-decoration:underline;}
.quote {color:$red; font-style:italic;}
CSS Text
101.
Vivamus dignissim nunceleifend, commodo mi sed, aliquam ante. Donec id lacus eu
lectus sollicitudin viverra. Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia vel urna ac, dictum lobortis
justo.“Donec et molestie purus”. Cras et faucibus est, a viverra odio. Praesent luctus
vel purus non mollis. In luctus vitae lectus quis fringilla. Curabitur porttitor justo ac
dolor iaculis convallis.
p {font-family:Georgia Times serif;}
a {color:$blue; text-decoration:underline;}
.quote {color:$red; font-style:italic;}
CSS Text
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
105.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
106.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
107.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
108.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
• a:active Selects the active link
109.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
• a:active Selects the active link
• a:hover Selects links on mouse over
110.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
• a:active Selects the active link
• a:hover Selects links on mouse over
• p::first-letter Selects the first letter of a paragraph
111.
CSS Pseudo-classes
• CSSpseudo-classes are used to select the current condition of
an element.
• The most common pseudo-classes are links
• Links can be styled differently depending on what state they
are in.
• a:link Selects an unvisited link
• a:visited Selects visited links
• a:active Selects the active link
• a:hover Selects links on mouse over
• p::first-letter Selects the first letter of a paragraph
• p::first-line Selects the first line of a paragraph
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
114.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
115.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
116.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
117.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
• background-attachment sets whether a background image is
fixed or scrolls with the rest of the page
118.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
• background-attachment sets whether a background image is
fixed or scrolls with the rest of the page
• background-position sets the starting position of a background
image
119.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
• background-attachment sets whether a background image is
fixed or scrolls with the rest of the page
• background-position sets the starting position of a background
image
• background sets all the background properties in one declaration
120.
CSS Background
• CSSbackground properties are used to define the background
effects of an element.
• background-color sets the background color of an element
• background-image sets the background image for an element
• background-repeat sets how a background image will be
repeated
• background-attachment sets whether a background image is
fixed or scrolls with the rest of the page
• background-position sets the starting position of a background
image
• background sets all the background properties in one declaration
CSS Positioning
• TheCSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
124.
CSS Positioning
• TheCSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
• position:static is the default position of an element
125.
CSS Positioning
• TheCSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
• position:static is the default position of an element
• position:fixed tells an element to be positioned relative to the
browser window. It will not move even if the window is scrolled
126.
CSS Positioning
• TheCSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
• position:static is the default position of an element
• position:fixed tells an element to be positioned relative to the
browser window. It will not move even if the window is scrolled
• position:relative tells an element to be positioned relative to
its normal position.
127.
CSS Positioning
• TheCSS positioning properties allow you to position an
element.
• Elements can be positioned using the top, bottom, left, and
right properties.
• position:static is the default position of an element
• position:fixed tells an element to be positioned relative to the
browser window. It will not move even if the window is scrolled
• position:relative tells an element to be positioned relative to
its normal position.
• position:absolute tells an element where to be positioned
relative to its parent element.
CSS Float
• WithCSS float, an element can be pushed to the
left or right, allowing other elements to wrap
around it.
138.
CSS Float
• WithCSS float, an element can be pushed to the
left or right, allowing other elements to wrap
around it.
• clear Specifies which sides of an element where
other floating elements are not allowed.
139.
CSS Float
• WithCSS float, an element can be pushed to the
left or right, allowing other elements to wrap
around it.
• clear Specifies which sides of an element where
other floating elements are not allowed.
• float Specifies whether or not a box should float
to the left or right.
img {float:none;}
img {float:left;}
img{float:right;}
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
CSS Float
145.
img {float:none;}
• Vivamusdignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
• purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel
purus non mollis. In luctus vitae lectus quis fringilla. Curabitur
porttitor justo ac dolor iaculis convallis.
img {float:left;}
img {float:right;}
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
CSS Float
146.
img {float:none;}
• Vivamusdignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
• purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel
purus non mollis. In luctus vitae lectus quis fringilla. Curabitur
porttitor justo ac dolor iaculis convallis.
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
• purus”. Cras et faucibus est, a viverra odio. Praesent luctus vel
purus non mollis. In luctus vitae lectus quis fringilla. Curabitur
porttitor justo ac dolor iaculis convallis.
img {float:left;}
img {float:right;}
• Vivamus dignissim nunc eleifend, commodo mi sed,
aliquam ante. Donec id lacus eu lectus sollicitudin viverra.
Curabitur congue ultricies elit, at euismod mauris iaculis
at. Sed et dignissim ipsum. Quisque massa quam, lacinia
vel urna ac, dictum lobortis justo.“Donec et molestie
CSS Float
CSS Display andVisibility
• The display property specifies if/how an element is displayed,
and the visibility property specifies if an element should be
visible or hidden.
149.
CSS Display andVisibility
• The display property specifies if/how an element is displayed,
and the visibility property specifies if an element should be
visible or hidden.
• visibility:hidden hides an element, but it will still take up
the same space as before.
150.
CSS Display andVisibility
• The display property specifies if/how an element is displayed,
and the visibility property specifies if an element should be
visible or hidden.
• visibility:hidden hides an element, but it will still take up
the same space as before.
• display:none hides an element, and it will not take up any
space.
151.
CSS Display andVisibility
• The display property specifies if/how an element is displayed,
and the visibility property specifies if an element should be
visible or hidden.
• visibility:hidden hides an element, but it will still take up
the same space as before.
• display:none hides an element, and it will not take up any
space.
• display:inline tells an element to only take up as much
width as necessary, and will not force line breaks.
152.
CSS Display andVisibility
• The display property specifies if/how an element is displayed,
and the visibility property specifies if an element should be
visible or hidden.
• visibility:hidden hides an element, but it will still take up
the same space as before.
• display:none hides an element, and it will not take up any
space.
• display:inline tells an element to only take up as much
width as necessary, and will not force line breaks.
• display:block tells an element will takes up the full width
available, and will have a line break before and after it
CSS Image Opacity/ Transparency
• The CSS3 property for transparency is opacity.
155.
CSS Image Opacity/ Transparency
• The CSS3 property for transparency is opacity.
• The opacity property can take a value from 0.0 -
1.0. A lower value makes the element more
transparent.
156.
CSS Image Opacity/ Transparency
• The CSS3 property for transparency is opacity.
• The opacity property can take a value from 0.0 -
1.0. A lower value makes the element more
transparent.
{opacity:0.1;}
157.
CSS Image Opacity/ Transparency
• The CSS3 property for transparency is opacity.
• The opacity property can take a value from 0.0 -
1.0. A lower value makes the element more
transparent.
{opacity:0.1;} {opacity:0.5;}
158.
CSS Image Opacity/ Transparency
• The CSS3 property for transparency is opacity.
• The opacity property can take a value from 0.0 -
1.0. A lower value makes the element more
transparent.
{opacity:0.1;} {opacity:0.5;} {opacity:1.0;}
CSS Image Sprites
•An image sprite is a collection of images put into
a single image.
161.
CSS Image Sprites
•An image sprite is a collection of images put into
a single image.
• A web page with many images can take a long
time to load and generates multiple server
requests.
162.
CSS Image Sprites
•An image sprite is a collection of images put into
a single image.
• A web page with many images can take a long
time to load and generates multiple server
requests.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
165.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
166.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
• braille Used for braille tactile feedback devices
167.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
• braille Used for braille tactile feedback devices
• print Used for printers
168.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
• braille Used for braille tactile feedback devices
• print Used for printers
• screen Used for computer screens
169.
CSS Media Types
•By using the @media rule, a website can have a
different layout for screen, print, mobile phone,
tablet, etc.
• all Used for all media type devices
• braille Used for braille tactile feedback devices
• print Used for printers
• screen Used for computer screens
• tv Used for television-type devices
• SASS standsfor Syntactically Awesome Style Sheets
What is SASS?
173.
• SASS standsfor Syntactically Awesome Style Sheets
• Sass is a CSS preprocessor
What is SASS?
174.
• SASS standsfor Syntactically Awesome Style Sheets
• Sass is a CSS preprocessor
• Sass can be written in either the sass or scss syntax
What is SASS?
175.
• SASS standsfor Syntactically Awesome Style Sheets
• Sass is a CSS preprocessor
• Sass can be written in either the sass or scss syntax
• Sass files compile into css files
What is SASS?
• CSS doesn’tallow variables
• SASS uses mixins (reusable blocks of styles)
Why do we use SASS?
179.
• CSS doesn’tallow variables
• SASS uses mixins (reusable blocks of styles)
• SASS is faster, more efficient, and easier to maintain
Why do we use SASS?
180.
• CSS doesn’tallow variables
• SASS uses mixins (reusable blocks of styles)
• SASS is faster, more efficient, and easier to maintain
• Using COMPASS with SASS allows us to write many lines
of cross-browser compatible CSS in a single line of code!
Why do we use SASS?