SlideShare a Scribd company logo
1 of 20
BOOTSTRAP 4
Krishan Mohan
Gaurav mall
Outline
■ Top 5 Most Popular CSS Frameworks
■ What is Bootstrap?
■ What is new in B4?
■ Sass
■ Review of REM units and demo
■ FLEXBOX
■ BS Grid History
■ BS4 Grid System
Top 5 Most Popular CSS Frameworks
What is Bootstrap 4?
■ Bootstrap is the most popular CSS framework for RAPIDWEBSITE PROTOTYPING.
■ What is the grid?
■ FLEXBOX
■ Sass architecture
■ Open source
What is new in Bootstrap 4?
■ EnhancedGRID
■ Switched from LESS to SASS
■ Cards component
■ REM instead of Pixels CSS units
■ FLEXBOX grid support
■ Re Boot - replaces normalizer
■ No more IE8!!!!!!
What is a CSS reset?
Its an additional block of CSS that will help with consistency in the default styling of
HTML elements.
■ Eric mayer’s CSS reset
■ Normalizer
■ B4 new Reboot
■ HTML5 reset
Sass
■ Sass is an extension of CSS that allows for more functional syntax. Sass always needs
to be compiled into CSS.
■ Sass is used by developers to produce more modular and easy to maintain code on the
source code.
■ The easiest way to get started with Sass is with a compiler program like Koala
■ Bootstrap 4 ships with a _custom.scss file for easy overriding of default variables.
■ For Global variables, use _variables.scss
■ Be sure to remove the !default flag from override values.
How REM units work
■ The rem unit is relative to the root—or the html—element.That means that we can define a
single font size on the html element and define all rem units to be a percentage of that.
■ html { font-size: 62.5%; }
■ body { font-size: 1.4rem; } /* =14px */
■ h1 { font-size: 2.4rem; } /* =24px */
EMs
■ 1em is equal to the current font size.The default text size in browsers is 16px. So, the
default size of 1em is 16px.
REMs
■ Equal to the computed value of font-size on the root element.When specified on the font-
size property of the root element, the rem units refer to the property's initial value.
PIXELS
■ The pixel (a word invented from "picture element") is the basic unit of programmable color
on a computer display or in a computer image
How does the FLEXBOX work?
■ FLEXBOX is a CSS3 layout mode that provides an easier way to arrange elements
within a container
■ No FLOATS
■ No margin collapse
■ Order of elements is controlled from CSS
■ Designed for screens
■ Easier to position child elements
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Can we use FLEXBOX now?
■ YES, but be careful & use fall backs when possible.
■ 90% of Browser support FLEXBOX
■ IE has no support
■ EDGE partial support
■ Legacy mobile browsers no support or partial support
https://caniuse.com/#feat=flexbox
Basic FLEXBOX Utilities
Vertical Alignment (row)
■ align-items-start
■ align-items-center
■ align-items-end
Order of itement (col)
■ flex-unordered
■ flex-first
■ flex-last
Horizontal Alignment (row)
■ justify-content-start
■ justify-content-center
■ Justify-content-end
■ justify-content-around
■ justify-content-between
The BS Grid History
■ Looking back at Bootstrap 3, the 4 grid tiers (‘xs’, ’sm’, ‘md’ and ‘lg’ breakpoints) .
■ The smallest breakpoint has a wide range of devices less than 768px in width.
Bootstrap 4 Grid
■ Introducing the new XL grid tier
There are 5 tiers (or breakpoints) to support typical portrait and landscape screen
widths.
■ New grid breakpoint with the col-xl-*classes
■ Breakpoints:
The XL breakpoint is screen widths>1200px
■ The LG breakpoint is screen widths>992px
■ The MD breakpoint is screen widths>768px
■ The SM breakpoint is screen widths>544px
■ The XS breakpoint is screen widths<544px
CSS Layout -The position Property
The position property specifies the type of positioning method used for an element.
■ There are five different position values:
■ static
■ relative
■ fixed
■ absolute
■ Sticky- Note: IE/Edge 15 and earlier versions do not support sticky position.
The CSS Box Model
■ 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
CSSVariables
■ Variables in CSS should be declared within a CSS selector that defines its scope. For a
global scope you can use either the :root or the body selector.
■ The syntax of the var() function is as follows: var(custom-name, value)
Example:
■ https://codepen.io/krishan101090/pen/YvxzWP?editors=1100
CSS ANIMATION - KEYFRAMES
■ The @keyframes rule specifies the animation code.
■ During the animation, you can change the set of CSS styles many times.
■ Specify when the style change will happen in percent, or with the keywords "from" and
"to", which is the same as 0% and 100%. 0% is the beginning of the animation, 100% is
when the animation is complete.
■ https://codepen.io/krishan101090/pen/jKLOPG
Question And Answes

More Related Content

Similar to Krishan gaurav-sapient bootstrapsession

Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...Skilld
 
Web development basics (Part-2)
Web development basics (Part-2)Web development basics (Part-2)
Web development basics (Part-2)Rajat Pratap Singh
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflowPeter Kaizer
 
Responsive web design
Responsive web designResponsive web design
Responsive web designRicha Goel
 
The web standards gentleman: a matter of (evolving) standards)
The web standards gentleman: a matter of (evolving) standards)The web standards gentleman: a matter of (evolving) standards)
The web standards gentleman: a matter of (evolving) standards)Chris Mills
 
04 CSS #burningkeyboards
04 CSS #burningkeyboards04 CSS #burningkeyboards
04 CSS #burningkeyboardsDenis Ristic
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsSEGIC
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Thinkful
 
Web technologies-course 04.pptx
Web technologies-course 04.pptxWeb technologies-course 04.pptx
Web technologies-course 04.pptxStefan Oprea
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksNathan Smith
 

Similar to Krishan gaurav-sapient bootstrapsession (20)

Slides bootstrap-4
Slides bootstrap-4Slides bootstrap-4
Slides bootstrap-4
 
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
 
Web development basics (Part-2)
Web development basics (Part-2)Web development basics (Part-2)
Web development basics (Part-2)
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
The web standards gentleman: a matter of (evolving) standards)
The web standards gentleman: a matter of (evolving) standards)The web standards gentleman: a matter of (evolving) standards)
The web standards gentleman: a matter of (evolving) standards)
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
Web Design Norms
Web Design NormsWeb Design Norms
Web Design Norms
 
04 CSS #burningkeyboards
04 CSS #burningkeyboards04 CSS #burningkeyboards
04 CSS #burningkeyboards
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needs
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Fewd week3 slides
Fewd week3 slidesFewd week3 slides
Fewd week3 slides
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
 
Web technologies-course 04.pptx
Web technologies-course 04.pptxWeb technologies-course 04.pptx
Web technologies-course 04.pptx
 
Web technology
Web technologyWeb technology
Web technology
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + Fireworks
 

Recently uploaded

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 

Krishan gaurav-sapient bootstrapsession

  • 2. Outline ■ Top 5 Most Popular CSS Frameworks ■ What is Bootstrap? ■ What is new in B4? ■ Sass ■ Review of REM units and demo ■ FLEXBOX ■ BS Grid History ■ BS4 Grid System
  • 3. Top 5 Most Popular CSS Frameworks
  • 4.
  • 5. What is Bootstrap 4? ■ Bootstrap is the most popular CSS framework for RAPIDWEBSITE PROTOTYPING. ■ What is the grid? ■ FLEXBOX ■ Sass architecture ■ Open source
  • 6. What is new in Bootstrap 4? ■ EnhancedGRID ■ Switched from LESS to SASS ■ Cards component ■ REM instead of Pixels CSS units ■ FLEXBOX grid support ■ Re Boot - replaces normalizer ■ No more IE8!!!!!!
  • 7. What is a CSS reset? Its an additional block of CSS that will help with consistency in the default styling of HTML elements. ■ Eric mayer’s CSS reset ■ Normalizer ■ B4 new Reboot ■ HTML5 reset
  • 8. Sass ■ Sass is an extension of CSS that allows for more functional syntax. Sass always needs to be compiled into CSS. ■ Sass is used by developers to produce more modular and easy to maintain code on the source code. ■ The easiest way to get started with Sass is with a compiler program like Koala
  • 9. ■ Bootstrap 4 ships with a _custom.scss file for easy overriding of default variables. ■ For Global variables, use _variables.scss ■ Be sure to remove the !default flag from override values.
  • 10. How REM units work ■ The rem unit is relative to the root—or the html—element.That means that we can define a single font size on the html element and define all rem units to be a percentage of that. ■ html { font-size: 62.5%; } ■ body { font-size: 1.4rem; } /* =14px */ ■ h1 { font-size: 2.4rem; } /* =24px */ EMs ■ 1em is equal to the current font size.The default text size in browsers is 16px. So, the default size of 1em is 16px. REMs ■ Equal to the computed value of font-size on the root element.When specified on the font- size property of the root element, the rem units refer to the property's initial value. PIXELS ■ The pixel (a word invented from "picture element") is the basic unit of programmable color on a computer display or in a computer image
  • 11. How does the FLEXBOX work? ■ FLEXBOX is a CSS3 layout mode that provides an easier way to arrange elements within a container ■ No FLOATS ■ No margin collapse ■ Order of elements is controlled from CSS ■ Designed for screens ■ Easier to position child elements https://css-tricks.com/snippets/css/a-guide-to-flexbox/
  • 12. Can we use FLEXBOX now? ■ YES, but be careful & use fall backs when possible. ■ 90% of Browser support FLEXBOX ■ IE has no support ■ EDGE partial support ■ Legacy mobile browsers no support or partial support https://caniuse.com/#feat=flexbox
  • 13. Basic FLEXBOX Utilities Vertical Alignment (row) ■ align-items-start ■ align-items-center ■ align-items-end Order of itement (col) ■ flex-unordered ■ flex-first ■ flex-last Horizontal Alignment (row) ■ justify-content-start ■ justify-content-center ■ Justify-content-end ■ justify-content-around ■ justify-content-between
  • 14. The BS Grid History ■ Looking back at Bootstrap 3, the 4 grid tiers (‘xs’, ’sm’, ‘md’ and ‘lg’ breakpoints) . ■ The smallest breakpoint has a wide range of devices less than 768px in width.
  • 15. Bootstrap 4 Grid ■ Introducing the new XL grid tier There are 5 tiers (or breakpoints) to support typical portrait and landscape screen widths. ■ New grid breakpoint with the col-xl-*classes ■ Breakpoints: The XL breakpoint is screen widths>1200px ■ The LG breakpoint is screen widths>992px ■ The MD breakpoint is screen widths>768px ■ The SM breakpoint is screen widths>544px ■ The XS breakpoint is screen widths<544px
  • 16. CSS Layout -The position Property The position property specifies the type of positioning method used for an element. ■ There are five different position values: ■ static ■ relative ■ fixed ■ absolute ■ Sticky- Note: IE/Edge 15 and earlier versions do not support sticky position.
  • 17. The CSS Box Model ■ 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
  • 18. CSSVariables ■ Variables in CSS should be declared within a CSS selector that defines its scope. For a global scope you can use either the :root or the body selector. ■ The syntax of the var() function is as follows: var(custom-name, value) Example: ■ https://codepen.io/krishan101090/pen/YvxzWP?editors=1100
  • 19. CSS ANIMATION - KEYFRAMES ■ The @keyframes rule specifies the animation code. ■ During the animation, you can change the set of CSS styles many times. ■ Specify when the style change will happen in percent, or with the keywords "from" and "to", which is the same as 0% and 100%. 0% is the beginning of the animation, 100% is when the animation is complete. ■ https://codepen.io/krishan101090/pen/jKLOPG