SlideShare a Scribd company logo
CORDOVA TRAINING
SESSION: 2 – INTRODUCTION TO CSS 3
INTRODUCTION TO CSS 3
 CSS is used to control the style of a web document in a simple and easy way.
 CSS is the acronym for "Cascading Style Sheet".
 Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to
simplify the process of making web pages presentable.
 CSS handles the look and feel part of a web page.
 Using CSS, you can control the color of the text, the style of fonts, the spacing between
paragraphs, how columns are sized and laid out, what background images or colors are used,
layout design, variations in display for different devices and screen sizes as well as a variety of
other effects.
ADVANTAGES OF CSS
 Advantages of CSS:
 CSS saves time - You can write CSS once and then reuse same sheet in multiple HTML pages.
 Pages load faster - If you are using CSS, you do not need to write HTML tag attributes every time. Just
write one CSS rule of a tag and apply it to all the occurrences of that tag. So less code means faster
download times.
 Easy maintenance - To make a global change, simply change the style, and all elements in all the web
pages will be updated automatically.
 Offline Browsing - The cache also ensures faster loading and better overall performance of the website.
CSS MODULES
 Selectors
 Box Model
 Backgrounds and Borders
 Image Values and Replaced Content
 Text Effects
 2D/3D Transformations
 Animations
 Multiple Column Layout
 User Interface
CSS SYNTAX
 A CSS comprises of style rules that are interpreted by the browser and then applied to the
corresponding elements in your document.
 A style rule is made of three parts:
 Selector - A selector is an HTML tag at which a style will be applied
 Property - A property is a type of attribute of HTML tag
 Value - Values are assigned to properties
 You can put the rule as:
 selector { property: value }
CSS SYNTAX
TYPES OF SELECTORS
 We can define selectors in various simple ways. They are:
 Type selectors
 Universal Selectors
 Descendant Selectors
 Class Selectors
 ID Selectors
 Child Selectors
 Attribute Selectors
TYPES OF SELECTORS
 We can define selectors in various simple ways. They are:
 Type selectors
 div, p, h1
 Universal Selectors
 *
 Descendant Selectors
 ul em
TYPES OF SELECTORS
 Class Selectors
 .black
 ID Selectors
 #black
 Child Selectors
 body > p
 Attribute Selectors
 input[type = "text"]
MULTIPLE STYLE RULES
 You may need to define multiple style rules for a single element. You can define these rules to combine
multiple properties and corresponding values into a single block. All the property and value pairs are
separated by a semi colon. You can keep them in a single line or multiple lines. For better readability
we keep them into separate lines.
 Example:
h1 {
color: #36C;
font-weight: normal;
margin-bottom: 1em;
text-transform: lowercase;
}
ADDING CSS TO A PAGE
 There are four ways to associate styles with your HTML document. Most commonly used
methods are inline CSS and External CSS.
 Embedded CSS - The <style> Element
 Inline CSS - The style Attribute
 External CSS - The <link> Element
 Imported CSS - @import Rule
CSS RULES OVERRIDING
 We have discussed four ways to include style sheet rules in a an HTML document. Here is the rule
to override any Style Sheet Rule.
 Inline style sheet takes highest priority
 Any rule defined in <style></style> tags will override rules defined in any external style sheet file
 Any rule defined in external style sheet file takes lowest priority
CSS COMMENTS
 You can use /* ....*/ to comment multi-line blocks in similar way you do in C and C++
programming languages.
CSS MEASUREMENT UNITS
 CSS supports a number of measurements including absolute units such as inches, centimeters,
points, and so on, as well as relative measures such as percentages and em units. The most
commonly used one’s are:
 %
 mm
 cm
 px
 em
 pt
CSS COLORS
 CSS uses color values to specify a color. Typically, these are used to set a color either for the
foreground of an element (i.e., its text) or else for the background of the element. They can also
be used to affect the color of borders.
 You can specify your color values in various formats:
 HEX code - #RRGGBB
 Short HEX code - #RGB
 RGB % - rgb(rr%, gg%, bb%)
 RGB Absolute – rgb(r,g,b)
 Color value – red, green, blue etc.
CSS BACKGROUNDS
 Using CSS, you can set the following background properties of an element.
 background-color
 background-image
 background-repeat
 background-position
 background-attachment
 background
CSS FONTS
 Using CSS, You can set following font properties of an element.
 font-family
 font-style
 font-weight
 font-size
 font
CSS TEXT
 Using CSS, you can manipulate the text related properties of an element.
 color
 direction
 letter-spacing
 word-spacing
 text-indent
 text-align
CSS IMAGES
 Images play an important role in any webpage. Though it is not recommended to include a lot of
images, but it is still important to use good images wherever required.
 CSS plays a good role to control image display. You can set the following image properties using
CSS.
 border
 height
 width
CSS BORDERS
 The border properties allow you to specify how the border of the box representing an element
should look. There are three properties of a border you can change:
 border-color
 border-style
 border-width
CSS MARGINS
 The margin property defines the space around an HTML element. It is possible to use negative
values to overlap content. We have the following properties to set an element margin:
 margin
 margin-left|right|top|bottom
CSS PADDINGS
 The padding property allows you to specify how much space should appear between the content
of an element and its border. We can also set different values for the padding on each side of the
box using the following properties
 padding
 padding-left|right|top|bottom
CSS DIMENSIONS
 You have seen the border that surrounds every box ie. element, the padding that can appear
inside each box and the margin that can go around them. In this slide, we will learn how we can
change the dimensions of boxes.
 height, min-height, max-height
 width, min-width, max-width
 line-height
CSS SCROLL BARS
 There may be a case when an element's content might be larger than the amount of space
allocated to it. CSS provides a property called overflow which tells the browser what to do if the
box's contents is larger than the box itself. This property can take one of the following values:
 visible
 hidden
 scroll
 auto
CSS VISIBILITY
 A property called visibility allows you to hide an element from view. You can use this property
along with JavaScript to create very complex menu and very complex webpage layouts.
 The visibility property can take the values listed below:
 visible
 hidden
CSS POSITIONING
 CSS helps you to position your HTML element. You can put any HTML element at whatever
location you like. You can specify whether you want the element positioned relative to its natural
position in the page or absolute based on its parent element.
 The positioning can take the values listed below:
 Relative
 Absolute
 Fixed
THANK YOU
Ad

More Related Content

What's hot (16)

Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Css3
Css3Css3
Css3
Knoldus Inc.
 
CSS
CSS CSS
CSS
Sunil OS
 
Css ppt
Css pptCss ppt
Css ppt
Nidhi mishra
 
The Dark Arts of CSS
The Dark Arts of CSSThe Dark Arts of CSS
The Dark Arts of CSS
SiddharthBorderwala
 
Cascstylesheets
CascstylesheetsCascstylesheets
Cascstylesheets
Digital Insights - Digital Marketing Agency
 
CSS Font & Text style
CSS Font & Text style CSS Font & Text style
CSS Font & Text style
Yaowaluck Promdee
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
Html css
Html cssHtml css
Html css
kanakaiah kedam
 
Css box-model
Css box-modelCss box-model
Css box-model
Webtech Learning
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
Web designing training in chandigarh
Web designing training in chandigarhWeb designing training in chandigarh
Web designing training in chandigarh
Sheetal Sharma
 
CSS Box Model Presentation
CSS Box Model PresentationCSS Box Model Presentation
CSS Box Model Presentation
Reed Crouch
 
Css
CssCss
Css
jayakarthi
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
Srijan presentation on CSS
Srijan presentation on CSSSrijan presentation on CSS
Srijan presentation on CSS
Shashank Merothiya
 

Similar to Cordova training - Day 2 Introduction to CSS 3 (20)

Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Css
CssCss
Css
Balakumaran Arunachalam
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
Tanu524249
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
CSS
CSSCSS
CSS
People Strategists
 
Css
CssCss
Css
NIRMAL FELIX
 
Css
CssCss
Css
actacademy
 
Css
CssCss
Css
actacademy
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
html-css
html-csshtml-css
html-css
Dhirendra Chauhan
 
Web application is an application that is accessed by web visitor over intern...
Web application is an application that is accessed by web visitor over intern...Web application is an application that is accessed by web visitor over intern...
Web application is an application that is accessed by web visitor over intern...
MdAmreen
 
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSCHTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
300179
 
Introduction of css
Introduction of cssIntroduction of css
Introduction of css
Dinesh Kumar
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
vishal choudhary
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
Sohail Christoper
 
Css - Tutorial
Css - TutorialCss - Tutorial
Css - Tutorial
adelaticleanu
 
Cascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSSCascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
Tanu524249
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
Web application is an application that is accessed by web visitor over intern...
Web application is an application that is accessed by web visitor over intern...Web application is an application that is accessed by web visitor over intern...
Web application is an application that is accessed by web visitor over intern...
MdAmreen
 
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSCHTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
300179
 
Introduction of css
Introduction of cssIntroduction of css
Introduction of css
Dinesh Kumar
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Cascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSSCascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
Ad

More from Binu Paul (10)

GIT
GITGIT
GIT
Binu Paul
 
Cordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITECordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITE
Binu Paul
 
Cordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API'sCordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API's
Binu Paul
 
Cordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processingCordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processing
Binu Paul
 
Cordova training : Cordova plugins
Cordova training : Cordova pluginsCordova training : Cordova plugins
Cordova training : Cordova plugins
Binu Paul
 
Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7
Binu Paul
 
Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7
Binu Paul
 
Cordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced JavascriptCordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced Javascript
Binu Paul
 
Cordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to JavascriptCordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to Javascript
Binu Paul
 
Cordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to CordovaCordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to Cordova
Binu Paul
 
Cordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITECordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITE
Binu Paul
 
Cordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API'sCordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API's
Binu Paul
 
Cordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processingCordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processing
Binu Paul
 
Cordova training : Cordova plugins
Cordova training : Cordova pluginsCordova training : Cordova plugins
Cordova training : Cordova plugins
Binu Paul
 
Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7
Binu Paul
 
Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7
Binu Paul
 
Cordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced JavascriptCordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced Javascript
Binu Paul
 
Cordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to JavascriptCordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to Javascript
Binu Paul
 
Cordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to CordovaCordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to Cordova
Binu Paul
 
Ad

Recently uploaded (20)

Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Implementing promises with typescripts, step by step
Implementing promises with typescripts, step by stepImplementing promises with typescripts, step by step
Implementing promises with typescripts, step by step
Ran Wahle
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Top 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdfTop 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdf
AffinityCore
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Foundation Models for Time Series : A Survey
Foundation Models for Time Series : A SurveyFoundation Models for Time Series : A Survey
Foundation Models for Time Series : A Survey
jayanthkalyanam1
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
DVDFab Crack FREE Download Latest Version 2025
DVDFab Crack FREE Download Latest Version 2025DVDFab Crack FREE Download Latest Version 2025
DVDFab Crack FREE Download Latest Version 2025
younisnoman75
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Implementing promises with typescripts, step by step
Implementing promises with typescripts, step by stepImplementing promises with typescripts, step by step
Implementing promises with typescripts, step by step
Ran Wahle
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Top 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdfTop 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdf
AffinityCore
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Foundation Models for Time Series : A Survey
Foundation Models for Time Series : A SurveyFoundation Models for Time Series : A Survey
Foundation Models for Time Series : A Survey
jayanthkalyanam1
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
DVDFab Crack FREE Download Latest Version 2025
DVDFab Crack FREE Download Latest Version 2025DVDFab Crack FREE Download Latest Version 2025
DVDFab Crack FREE Download Latest Version 2025
younisnoman75
 

Cordova training - Day 2 Introduction to CSS 3

  • 1. CORDOVA TRAINING SESSION: 2 – INTRODUCTION TO CSS 3
  • 2. INTRODUCTION TO CSS 3  CSS is used to control the style of a web document in a simple and easy way.  CSS is the acronym for "Cascading Style Sheet".  Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable.  CSS handles the look and feel part of a web page.  Using CSS, you can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used, layout design, variations in display for different devices and screen sizes as well as a variety of other effects.
  • 3. ADVANTAGES OF CSS  Advantages of CSS:  CSS saves time - You can write CSS once and then reuse same sheet in multiple HTML pages.  Pages load faster - If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply it to all the occurrences of that tag. So less code means faster download times.  Easy maintenance - To make a global change, simply change the style, and all elements in all the web pages will be updated automatically.  Offline Browsing - The cache also ensures faster loading and better overall performance of the website.
  • 4. CSS MODULES  Selectors  Box Model  Backgrounds and Borders  Image Values and Replaced Content  Text Effects  2D/3D Transformations  Animations  Multiple Column Layout  User Interface
  • 5. CSS SYNTAX  A CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document.  A style rule is made of three parts:  Selector - A selector is an HTML tag at which a style will be applied  Property - A property is a type of attribute of HTML tag  Value - Values are assigned to properties  You can put the rule as:  selector { property: value }
  • 7. TYPES OF SELECTORS  We can define selectors in various simple ways. They are:  Type selectors  Universal Selectors  Descendant Selectors  Class Selectors  ID Selectors  Child Selectors  Attribute Selectors
  • 8. TYPES OF SELECTORS  We can define selectors in various simple ways. They are:  Type selectors  div, p, h1  Universal Selectors  *  Descendant Selectors  ul em
  • 9. TYPES OF SELECTORS  Class Selectors  .black  ID Selectors  #black  Child Selectors  body > p  Attribute Selectors  input[type = "text"]
  • 10. MULTIPLE STYLE RULES  You may need to define multiple style rules for a single element. You can define these rules to combine multiple properties and corresponding values into a single block. All the property and value pairs are separated by a semi colon. You can keep them in a single line or multiple lines. For better readability we keep them into separate lines.  Example: h1 { color: #36C; font-weight: normal; margin-bottom: 1em; text-transform: lowercase; }
  • 11. ADDING CSS TO A PAGE  There are four ways to associate styles with your HTML document. Most commonly used methods are inline CSS and External CSS.  Embedded CSS - The <style> Element  Inline CSS - The style Attribute  External CSS - The <link> Element  Imported CSS - @import Rule
  • 12. CSS RULES OVERRIDING  We have discussed four ways to include style sheet rules in a an HTML document. Here is the rule to override any Style Sheet Rule.  Inline style sheet takes highest priority  Any rule defined in <style></style> tags will override rules defined in any external style sheet file  Any rule defined in external style sheet file takes lowest priority
  • 13. CSS COMMENTS  You can use /* ....*/ to comment multi-line blocks in similar way you do in C and C++ programming languages.
  • 14. CSS MEASUREMENT UNITS  CSS supports a number of measurements including absolute units such as inches, centimeters, points, and so on, as well as relative measures such as percentages and em units. The most commonly used one’s are:  %  mm  cm  px  em  pt
  • 15. CSS COLORS  CSS uses color values to specify a color. Typically, these are used to set a color either for the foreground of an element (i.e., its text) or else for the background of the element. They can also be used to affect the color of borders.  You can specify your color values in various formats:  HEX code - #RRGGBB  Short HEX code - #RGB  RGB % - rgb(rr%, gg%, bb%)  RGB Absolute – rgb(r,g,b)  Color value – red, green, blue etc.
  • 16. CSS BACKGROUNDS  Using CSS, you can set the following background properties of an element.  background-color  background-image  background-repeat  background-position  background-attachment  background
  • 17. CSS FONTS  Using CSS, You can set following font properties of an element.  font-family  font-style  font-weight  font-size  font
  • 18. CSS TEXT  Using CSS, you can manipulate the text related properties of an element.  color  direction  letter-spacing  word-spacing  text-indent  text-align
  • 19. CSS IMAGES  Images play an important role in any webpage. Though it is not recommended to include a lot of images, but it is still important to use good images wherever required.  CSS plays a good role to control image display. You can set the following image properties using CSS.  border  height  width
  • 20. CSS BORDERS  The border properties allow you to specify how the border of the box representing an element should look. There are three properties of a border you can change:  border-color  border-style  border-width
  • 21. CSS MARGINS  The margin property defines the space around an HTML element. It is possible to use negative values to overlap content. We have the following properties to set an element margin:  margin  margin-left|right|top|bottom
  • 22. CSS PADDINGS  The padding property allows you to specify how much space should appear between the content of an element and its border. We can also set different values for the padding on each side of the box using the following properties  padding  padding-left|right|top|bottom
  • 23. CSS DIMENSIONS  You have seen the border that surrounds every box ie. element, the padding that can appear inside each box and the margin that can go around them. In this slide, we will learn how we can change the dimensions of boxes.  height, min-height, max-height  width, min-width, max-width  line-height
  • 24. CSS SCROLL BARS  There may be a case when an element's content might be larger than the amount of space allocated to it. CSS provides a property called overflow which tells the browser what to do if the box's contents is larger than the box itself. This property can take one of the following values:  visible  hidden  scroll  auto
  • 25. CSS VISIBILITY  A property called visibility allows you to hide an element from view. You can use this property along with JavaScript to create very complex menu and very complex webpage layouts.  The visibility property can take the values listed below:  visible  hidden
  • 26. CSS POSITIONING  CSS helps you to position your HTML element. You can put any HTML element at whatever location you like. You can specify whether you want the element positioned relative to its natural position in the page or absolute based on its parent element.  The positioning can take the values listed below:  Relative  Absolute  Fixed