https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
The main advantage of CSS is that style is
applied consistently across variety of sites. One
instruction can control several areas which is
advantageous. Web designers needs to use few
lines of programming for every page improving
site speed.
What are advantages of CSS ?
https://www.achieversit.com
Design services are required to consider and test all CSS codes
across different browsers for compatibility. Due to developers
testing compatibility for different browsers, their workload
increases. Overall, we can say that if you are passionate about web
development, try to learn HTML and CSS.
https://www.achieversit.com
https://www.achieversit.com
Example:-
https://www.achieversit.com
What is Selector?
A CSS selector is the first part of a CSS Rule. It is a pattern of
elements and other terms that tell the browser which HTML
elements should be selected to have the CSS property values
inside the rule applied to them.
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
https://www.achieversit.com
•The id selector uses the id attribute of an
HTML element to select a specific element.
•The id of an element is unique within a page,
so the id selector is used to select one
unique element!
•To select an element with a specific id, write
a hash (#) character, followed by the id of the
element.
WHAT IS ID SELECTOR (#) ?
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
WHAT IS CLASS SELECTOR (.)?
class selector selects elements with a
specific class attribute. To select elements
with a specific class, write a period (.)
character, followed by the name of the class.
You can also specify that only specific HTML
elements should be affected by a class.
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
https://www.achieversit.com
general
general
https://www.achieversit.com
WHAT IS UNIVERSAL SELECTOR (*)?
The universal selector (*) selects all HTML elements on the page.
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
WHAT IS GROUPING SELECTOR ?
•The grouping selector selects all the HTML elements with the same
style definitions.
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
The [attribute] selector is used to select elements with
a specified attribute.
https://www.achieversit.com
Achievers IT
https://www.achieversit.com
https://www.achieversit.com
A pseudo-class is used to define a
special state of an element.
For example, it can be used to:
•Style an element when a user mouses
over it.
•Style visited and unvisited links
differently.
•Style an element when it gets focus.
https://www.achieversit.com
A CSS pseudo-element is used to style specified
parts of an element.
For example, it can be used to:
•Style the first letter, or line, of an element.
•Insert content before, or after, the content
of an element.
https://www.achieversit.com
https://www.achieversit.com
 In CSS, the term "box model" is used when talking about design and layout.
 The CSS box model is essentially a box that wraps around every HTML element. It
consists of: margins, borders, padding, and the actual content.
Content - The content of the box, where text and images appear
Padding - Clears an area around the content. The padding is transparent
Border - A border that goes around the padding and content
Margin - Clears an area outside the border. The margin is transparent
Explanation of the different parts:
https://www.achieversit.com
The float property is used for positioning and formatting content e.g. let an
image float left to the text in a container.
The float property can have one of the following values:
•left - The element floats to the left of its container
•right - The element floats to the right of its container
•none - The element does not float (will be displayed just where it occurs in
the text). This is default
•inherit - The element inherits the float value of its parent
FLOAT :-
https://www.achieversit.com
FLEX :-
The flex property is a shorthand property
for:
•flex-grow
•flex-shrink
•flex-basis
The flex property sets the flexible length
on flexible items.
Note: If the element is not a flexible item,
the flex property has no effect.
https://www.achieversit.com
FLEX :-
Flex box is largely a one-
dimensional system
https://www.achieversit.com
GRID :-
 The CSS Grid Layout Module offers a grid-
based layout system, with rows and
columns, making it easier to design web
pages.
CSS Grid Layout is a two-dimensional
system, meaning it can handle both
columns and rows. Grid layout is
intended for larger-scale layouts which
aren’t linear in design.
https://www.achieversit.com
https://www.achieversit.com
The position property specifies the type of positioning method used for an
element.
There are five different position values:
static
relative
fixed
absolute
sticky
Elements are then positioned using the top, bottom, left, and right
properties.
However, these properties will not work unless the position property is set
first. They also work differently depending on the position value.
https://www.achieversit.com
Static Position
HTML elements are positioned static by default.
Static positioned elements are not affected by the top, bottom,
left, and right properties.
An element with position: static; is not positioned in any special
way; it is always positioned according to the normal flow of the
page:
https://www.achieversit.com
Relative Position
An element with position: relative; is positioned relative to its normal position.
Setting the top, right, bottom, and left properties of a relatively-positioned element
will cause it to be adjusted away from its normal position. Other content will not be
adjusted to fit into any gap left by the element.
https://www.achieversit.com
Fixed Position
An element with position: fixed; is positioned relative to the
viewport, which means it always stays in the same place even if the
page is scrolled. The top, right, bottom, and left properties are used
to position the element. A fixed element does not leave a gap in the
page where it would normally have been located.
https://www.achieversit.com
Absolute Position
An element with position: absolute; is positioned relative to the
nearest positioned ancestor (instead of positioned relative to the
viewport, like fixed).
However; if an absolute positioned element has no positioned
ancestors, it uses the document body, and moves along with page
scrolling.
Note: Absolute positioned elements are removed from the normal
flow, and can overlap elements.
https://www.achieversit.com
Sticky Position
An element with position: sticky; is positioned based on the
user's scroll position.
A sticky element toggles between relative and fixed, depending
on the scroll position.
It is positioned relative until a given offset position is met in the
viewport - then it "sticks" in place (like position: fixed).
Note: Internet Explorer does not support sticky positioning. Safari requires a -webkit-
prefix (see example below). You must also specify at least one
of top, right, bottom or left for sticky positioning to work.
https://www.achieversit.com
Typography
Typography is all about style, proportions, and spacing. Good typography is not only
imperative for aesthetic appeal, but it also improves site usability when text legibility
and readability concepts are applied.
Typography is also about emotion. Do the letters complement your content, or contradict it?
Even when typography is applied to the same text, it can make different people feel different
things. Therefore, being ​deliberate about typography lets us control these feelings.
https://www.achieversit.com
Transforms
The transform property applies a 2D or 3D transformation to an element.
This property allows you to rotate, scale, move, skew, etc., elements.
https://www.achieversit.com
The translate() method moves an element from its current position (according to the parameters given for the X-axis and the
Y-axis).
The rotate() method rotates an element clockwise or counter-clockwise
according to a given degree.
The scale() method increases or decreases the size of an element
(according to the parameters given for the width and height).
The skew() method skews an element along the X and Y-axis by the
given angles.
The matrix() method combines all the 2D transform methods into one.
The matrix() method take six parameters, containing mathematic functions, which allows you to rotate, scale, move (translate),
Rotate
Scale
Skew
https://www.achieversit.com
The translate() method moves an element from its current position
(according to the parameters given for the X-axis and the Y-axis).
The matrix() method combines all the 2D transform methods into one.
The matrix() method take six parameters, containing mathematic
functions, which allows you to rotate, scale, move (translate), and skew
elements.
Translate
Matrix
The transition property is a shorthand property for:
transition-property
transition-duration
transition-timing-function
transition-delay
Note: Always specify the transition-duration property, otherwise the duration
is 0s, and the transition will have no effect.
Transitions
The transition-property property specifies the name of the CSS property the transition effect is
for (the transition effect will start when the specified CSS property changes).
Transition Property
transition-property: none |all |property |initial | inherit;
Values
https://www.achieversit.com
Transition-Duration
The transition-duration property specifies how many seconds (s) or milliseconds
(ms) a transition effect takes to complete.
transition-duration: time | Initial | inherit;
Values
Transition-timing
The transition-timing-function property specifies the speed curve of the transition effect.
This property allows a transition effect to change speed over its duration.
transition-timing-function: linear |ease | ease-in | ease-out | ease-in-out | step-start | step-
end|steps(int,start|end)|cubic-bezier(n,n,n,n) | initial | inherit;
Values
Transition-delay
The transition-delay property specifies when the transition effect will start.
The transition-delay value is defined in seconds (s) or milliseconds (ms).
transition-delay: time | initial | inherit;
Values
https://www.achieversit.com
The opacity property specifies the opacity/transparency of an element.
The opacity property can take a value from 0.0 - 1.0. The lower value, the more transparent:
https://www.achieversit.com
Responsive web design makes your web page look
good on all devices.
Responsive web design uses only HTML and CSS.
What is Responsive Web Design?
https://www.achieversit.com
What is a Media Query?
Media query is a CSS technique introduced in CSS3.
It uses the @media rule to include a block of CSS properties only if a certain condition
is true.
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
Example
https://www.achieversit.com
info@achiversit.com

CSS3 PPT.pptx

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
    https://www.achieversit.com The main advantageof CSS is that style is applied consistently across variety of sites. One instruction can control several areas which is advantageous. Web designers needs to use few lines of programming for every page improving site speed. What are advantages of CSS ?
  • 8.
    https://www.achieversit.com Design services arerequired to consider and test all CSS codes across different browsers for compatibility. Due to developers testing compatibility for different browsers, their workload increases. Overall, we can say that if you are passionate about web development, try to learn HTML and CSS.
  • 9.
  • 10.
  • 11.
    https://www.achieversit.com What is Selector? ACSS selector is the first part of a CSS Rule. It is a pattern of elements and other terms that tell the browser which HTML elements should be selected to have the CSS property values inside the rule applied to them.
  • 12.
  • 13.
  • 14.
    https://www.achieversit.com •The id selectoruses the id attribute of an HTML element to select a specific element. •The id of an element is unique within a page, so the id selector is used to select one unique element! •To select an element with a specific id, write a hash (#) character, followed by the id of the element. WHAT IS ID SELECTOR (#) ?
  • 15.
  • 16.
    https://www.achieversit.com WHAT IS CLASSSELECTOR (.)? class selector selects elements with a specific class attribute. To select elements with a specific class, write a period (.) character, followed by the name of the class. You can also specify that only specific HTML elements should be affected by a class.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
    https://www.achieversit.com WHAT IS UNIVERSALSELECTOR (*)? The universal selector (*) selects all HTML elements on the page.
  • 25.
  • 26.
    https://www.achieversit.com WHAT IS GROUPINGSELECTOR ? •The grouping selector selects all the HTML elements with the same style definitions.
  • 27.
  • 28.
    https://www.achieversit.com The [attribute] selectoris used to select elements with a specified attribute.
  • 29.
  • 30.
  • 31.
    https://www.achieversit.com A pseudo-class isused to define a special state of an element. For example, it can be used to: •Style an element when a user mouses over it. •Style visited and unvisited links differently. •Style an element when it gets focus.
  • 32.
    https://www.achieversit.com A CSS pseudo-elementis used to style specified parts of an element. For example, it can be used to: •Style the first letter, or line, of an element. •Insert content before, or after, the content of an element.
  • 33.
  • 34.
    https://www.achieversit.com  In CSS,the term "box model" is used when talking about design and layout.  The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content. Content - The content of the box, where text and images appear Padding - Clears an area around the content. The padding is transparent Border - A border that goes around the padding and content Margin - Clears an area outside the border. The margin is transparent Explanation of the different parts:
  • 35.
    https://www.achieversit.com The float propertyis used for positioning and formatting content e.g. let an image float left to the text in a container. The float property can have one of the following values: •left - The element floats to the left of its container •right - The element floats to the right of its container •none - The element does not float (will be displayed just where it occurs in the text). This is default •inherit - The element inherits the float value of its parent FLOAT :-
  • 36.
    https://www.achieversit.com FLEX :- The flexproperty is a shorthand property for: •flex-grow •flex-shrink •flex-basis The flex property sets the flexible length on flexible items. Note: If the element is not a flexible item, the flex property has no effect.
  • 37.
    https://www.achieversit.com FLEX :- Flex boxis largely a one- dimensional system
  • 38.
    https://www.achieversit.com GRID :-  TheCSS Grid Layout Module offers a grid- based layout system, with rows and columns, making it easier to design web pages. CSS Grid Layout is a two-dimensional system, meaning it can handle both columns and rows. Grid layout is intended for larger-scale layouts which aren’t linear in design.
  • 39.
  • 40.
    https://www.achieversit.com The position propertyspecifies the type of positioning method used for an element. There are five different position values: static relative fixed absolute sticky Elements are then positioned using the top, bottom, left, and right properties. However, these properties will not work unless the position property is set first. They also work differently depending on the position value.
  • 41.
    https://www.achieversit.com Static Position HTML elementsare positioned static by default. Static positioned elements are not affected by the top, bottom, left, and right properties. An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page:
  • 42.
    https://www.achieversit.com Relative Position An elementwith position: relative; is positioned relative to its normal position. Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.
  • 43.
    https://www.achieversit.com Fixed Position An elementwith position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled. The top, right, bottom, and left properties are used to position the element. A fixed element does not leave a gap in the page where it would normally have been located.
  • 44.
    https://www.achieversit.com Absolute Position An elementwith position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed). However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling. Note: Absolute positioned elements are removed from the normal flow, and can overlap elements.
  • 45.
    https://www.achieversit.com Sticky Position An elementwith position: sticky; is positioned based on the user's scroll position. A sticky element toggles between relative and fixed, depending on the scroll position. It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position: fixed). Note: Internet Explorer does not support sticky positioning. Safari requires a -webkit- prefix (see example below). You must also specify at least one of top, right, bottom or left for sticky positioning to work.
  • 46.
    https://www.achieversit.com Typography Typography is allabout style, proportions, and spacing. Good typography is not only imperative for aesthetic appeal, but it also improves site usability when text legibility and readability concepts are applied. Typography is also about emotion. Do the letters complement your content, or contradict it? Even when typography is applied to the same text, it can make different people feel different things. Therefore, being ​deliberate about typography lets us control these feelings.
  • 47.
    https://www.achieversit.com Transforms The transform propertyapplies a 2D or 3D transformation to an element. This property allows you to rotate, scale, move, skew, etc., elements.
  • 48.
    https://www.achieversit.com The translate() methodmoves an element from its current position (according to the parameters given for the X-axis and the Y-axis). The rotate() method rotates an element clockwise or counter-clockwise according to a given degree. The scale() method increases or decreases the size of an element (according to the parameters given for the width and height). The skew() method skews an element along the X and Y-axis by the given angles. The matrix() method combines all the 2D transform methods into one. The matrix() method take six parameters, containing mathematic functions, which allows you to rotate, scale, move (translate), Rotate Scale Skew
  • 49.
    https://www.achieversit.com The translate() methodmoves an element from its current position (according to the parameters given for the X-axis and the Y-axis). The matrix() method combines all the 2D transform methods into one. The matrix() method take six parameters, containing mathematic functions, which allows you to rotate, scale, move (translate), and skew elements. Translate Matrix
  • 50.
    The transition propertyis a shorthand property for: transition-property transition-duration transition-timing-function transition-delay Note: Always specify the transition-duration property, otherwise the duration is 0s, and the transition will have no effect. Transitions The transition-property property specifies the name of the CSS property the transition effect is for (the transition effect will start when the specified CSS property changes). Transition Property transition-property: none |all |property |initial | inherit; Values https://www.achieversit.com
  • 51.
    Transition-Duration The transition-duration propertyspecifies how many seconds (s) or milliseconds (ms) a transition effect takes to complete. transition-duration: time | Initial | inherit; Values Transition-timing The transition-timing-function property specifies the speed curve of the transition effect. This property allows a transition effect to change speed over its duration. transition-timing-function: linear |ease | ease-in | ease-out | ease-in-out | step-start | step- end|steps(int,start|end)|cubic-bezier(n,n,n,n) | initial | inherit; Values Transition-delay The transition-delay property specifies when the transition effect will start. The transition-delay value is defined in seconds (s) or milliseconds (ms). transition-delay: time | initial | inherit; Values https://www.achieversit.com
  • 52.
    The opacity propertyspecifies the opacity/transparency of an element. The opacity property can take a value from 0.0 - 1.0. The lower value, the more transparent:
  • 53.
    https://www.achieversit.com Responsive web designmakes your web page look good on all devices. Responsive web design uses only HTML and CSS. What is Responsive Web Design?
  • 54.
    https://www.achieversit.com What is aMedia Query? Media query is a CSS technique introduced in CSS3. It uses the @media rule to include a block of CSS properties only if a certain condition is true. /* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {...} /* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min-width: 600px) {...} /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) {...} /* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) {...} /* Extra large devices (large laptops and desktops, 1200px and up) */ @media only screen and (min-width: 1200px) {...} Example
  • 55.