SlideShare a Scribd company logo
IN A ROCKET
Learn front-end development at rocket speed
CSS CSS FUNDAMENTALS
Background
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
background-image
background-color
X
Y
background-position
background-repeat
background-attachment
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-COLOR
div {
width: 550px;
height: 550px;
background-color: #72B63C;
}
Enter any color format
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
background-image
url(image)
linear-gradient

radial-gradient
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
}
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
background-image
url(image)

linear-gradient
radial-gradient
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: linear-gradient(blue, yellow);
}
LINEAR GRADIENT / VERTICAL
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: linear-gradient(to right, blue , yellow);
}
LINEAR GRADIENT / HORIZONTAL
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: linear-gradient(to bottom right, blue, yellow);
}
LINEAR GRADIENT / DIAGONAL
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: linear-gradient(-90deg, blue, yellow);
}
LINEAR GRADIENT / USING ANGLES
180°

-180°
0°

360°
270°

-90°
90°

-270°
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: linear-gradient(blue, yellow, green);
}
LINEAR GRADIENT / MULTIPLE COLOR STOPS
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: repeating-linear-gradient(180deg, blue, yellow 33%);
}
LINEAR GRADIENT / REPEATING
READY TO USE CODE
33%
33%
33%
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
background-image
url(image)

linear-gradient

radial-gradient
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
0%
Gradient ray
100%
Ending shape
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: radial-gradient(blue, yellow);
}
RADIAL GRADIENT / NORMAL
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: radial-gradient(circle at top right,
blue, yellow);
}
RADIAL GRADIENT / POSITION
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-IMAGE
div {
width: 550px;
height: 550px;
background-image: radial-gradient(blue 0%, yellow 20%,
green 60%);
}
RADIAL GRADIENT / MULTIPLE COLOR STOPS
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-REPEAT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: ;
}
repeat-x
repeat-y
repeat
no-repeat
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-REPEAT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: ;
}
repeat-x
repeat-y
repeat
no-repeat
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-REPEAT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: ;
}
repeat-x
repeat-y
repeat
no-repeat
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-REPEAT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: ;
}
repeat-x
repeat-y
repeat
no-repeat
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-ATTACHMENT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: no-repeat;
background-attachment: ;
}
scroll
fixed
Scrolls with the page.
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-ATTACHMENT
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: no-repeat;
background-attachment: ;
}
scroll
fixed
Does not scroll with 

the page.
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-POSITION
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: 100px 20px;
}
X Y
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-POSITION
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: 50% 50%;
}
X Y
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND-POSITION
div {
width: 550px;
height: 550px;
background-color: #72B63C;
background-image: url("tree.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: ;
}
X
top left
bottom right
Y
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
IMAGE REPEATCOLOR
POSITIONATTACHMENT
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
BACKGROUND SHORTHAND
div { background: color image repetition attachment position }
background: #0f0 url("tree.png") no-repeat fixed right top
EXAMPLE
in a
ROCKET
TOOLS
~ ~ ~
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: CHROME DEVELOPER TOOLS
Contrast information
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: CHROME DEVELOPER TOOLS
Meets the minimum recommended contrast ratio (AA).
Meets the enhanced recommended contrast ratio (AAA).
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: GRADIENT MAGIC
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: WEBGRADIENTS
Learn front-end development at rocket speed
inarocket.com
by miguelsanchez.com
YOU CAN CONTINUE THIS COURSE FOR FREE ON
+ READY TO USE CODE
+ QUIZZES
+ FREE UPDATES
We respect your time

No more blah blah videos. Just straight to
the point slides with relevant information.
Ready to use code

Real code you can just copy and paste into
your real projects.
Step by step guides

Clear and concise steps to build real use
solutions. No missed points.
Learn front-end development at rocket speed
inarocket.com
IN A ROCKET
Learn front-end development at rocket speed
CSS CSS FUNDAMENTALS
Background
Ad

More Related Content

Similar to 16- Learn CSS Fundamentals / Background (20)

Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
Dirk Ginader
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
拓樹 谷
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors.
The University of Akron
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
hstryk
 
CSS Frameworks: Make the Right Choice (WDS09)
CSS Frameworks: Make the Right Choice (WDS09)CSS Frameworks: Make the Right Choice (WDS09)
CSS Frameworks: Make the Right Choice (WDS09)
Kevin Yank
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
web page
web pageweb page
web page
Sushil Kumar
 
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기
Reagan Hwang
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The Ugly
Joe Seifi
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day Deutschland
ThemePartner
 
шапка
шапкашапка
шапка
yesmanforever
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSS
Sayanee Basu
 
Presentation-1-1.pptx
Presentation-1-1.pptxPresentation-1-1.pptx
Presentation-1-1.pptx
IvanPasana
 
Learn to Love CSS3 [English]
Learn to Love CSS3 [English]Learn to Love CSS3 [English]
Learn to Love CSS3 [English]
ThemePartner
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
emrox
 
CSS3 Tips & Techniques
CSS3 Tips & TechniquesCSS3 Tips & Techniques
CSS3 Tips & Techniques
UIEpreviews
 
Background property in css
Background property in cssBackground property in css
Background property in css
Dhruvin Nakrani
 
From PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to lifeFrom PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to life
Derek Christensen
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
anubavam-techkt
 
Learn Sass and Compass quick
Learn Sass and Compass quickLearn Sass and Compass quick
Learn Sass and Compass quick
Billy Shih
 
Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
Dirk Ginader
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
拓樹 谷
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors.
The University of Akron
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
hstryk
 
CSS Frameworks: Make the Right Choice (WDS09)
CSS Frameworks: Make the Right Choice (WDS09)CSS Frameworks: Make the Right Choice (WDS09)
CSS Frameworks: Make the Right Choice (WDS09)
Kevin Yank
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기
Reagan Hwang
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The Ugly
Joe Seifi
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day Deutschland
ThemePartner
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSS
Sayanee Basu
 
Presentation-1-1.pptx
Presentation-1-1.pptxPresentation-1-1.pptx
Presentation-1-1.pptx
IvanPasana
 
Learn to Love CSS3 [English]
Learn to Love CSS3 [English]Learn to Love CSS3 [English]
Learn to Love CSS3 [English]
ThemePartner
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
emrox
 
CSS3 Tips & Techniques
CSS3 Tips & TechniquesCSS3 Tips & Techniques
CSS3 Tips & Techniques
UIEpreviews
 
Background property in css
Background property in cssBackground property in css
Background property in css
Dhruvin Nakrani
 
From PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to lifeFrom PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to life
Derek Christensen
 
Learn Sass and Compass quick
Learn Sass and Compass quickLearn Sass and Compass quick
Learn Sass and Compass quick
Billy Shih
 

More from In a Rocket (15)

3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
In a Rocket
 
14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
In a Rocket
 
3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
In a Rocket
 
14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
In a Rocket
 
Ad

Recently uploaded (20)

Internet Coordination Policy 2 (ICP-2) Review
Internet Coordination Policy 2 (ICP-2) ReviewInternet Coordination Policy 2 (ICP-2) Review
Internet Coordination Policy 2 (ICP-2) Review
APNIC
 
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
Nguyễn Minh
 
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
Taqyea
 
AG-FIRMA Ai Agent for Agriculture | RAG ..
AG-FIRMA Ai Agent for Agriculture  | RAG ..AG-FIRMA Ai Agent for Agriculture  | RAG ..
AG-FIRMA Ai Agent for Agriculture | RAG ..
Anass Nabil
 
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
emestica1
 
ProjectArtificial Intelligence Good or Evil.pptx
ProjectArtificial Intelligence Good or Evil.pptxProjectArtificial Intelligence Good or Evil.pptx
ProjectArtificial Intelligence Good or Evil.pptx
OlenaKotovska
 
34 Mobile Payment (Thomas Lerner (auth.).pdf
34 Mobile Payment (Thomas Lerner (auth.).pdf34 Mobile Payment (Thomas Lerner (auth.).pdf
34 Mobile Payment (Thomas Lerner (auth.).pdf
Nguyễn Minh
 
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
Nguyễn Minh
 
34 E-commerce - business, technology and society (2022).pdf
34 E-commerce - business, technology and society (2022).pdf34 E-commerce - business, technology and society (2022).pdf
34 E-commerce - business, technology and society (2022).pdf
Nguyễn Minh
 
IoT PPT introduction to internet of things
IoT PPT introduction to internet of thingsIoT PPT introduction to internet of things
IoT PPT introduction to internet of things
VaishnaviPatil3995
 
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
SergioBarreno2
 
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC
 
Presentation Mehdi Monitorama 2022 Cancer and Monitoring
Presentation Mehdi Monitorama 2022 Cancer and MonitoringPresentation Mehdi Monitorama 2022 Cancer and Monitoring
Presentation Mehdi Monitorama 2022 Cancer and Monitoring
mdaoudi
 
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
Taqyea
 
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdfGiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
Giacomo Vacca
 
Breaking Down the Latest Spectrum Internet Plans.pdf
Breaking Down the Latest Spectrum Internet Plans.pdfBreaking Down the Latest Spectrum Internet Plans.pdf
Breaking Down the Latest Spectrum Internet Plans.pdf
Internet Bundle Now
 
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
Nguyễn Minh
 
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness GuideThe Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
russellpeter1995
 
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
Nguyễn Minh
 
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
Nguyễn Minh
 
Internet Coordination Policy 2 (ICP-2) Review
Internet Coordination Policy 2 (ICP-2) ReviewInternet Coordination Policy 2 (ICP-2) Review
Internet Coordination Policy 2 (ICP-2) Review
APNIC
 
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
34 Mobile Electronic Commerce_ Foundations, Development, and Applications (20...
Nguyễn Minh
 
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
学生卡英国RCA毕业证皇家艺术学院电子毕业证学历证书
Taqyea
 
AG-FIRMA Ai Agent for Agriculture | RAG ..
AG-FIRMA Ai Agent for Agriculture  | RAG ..AG-FIRMA Ai Agent for Agriculture  | RAG ..
AG-FIRMA Ai Agent for Agriculture | RAG ..
Anass Nabil
 
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
CompTIA-Security-Study-Guide-with-over-500-Practice-Test-Questions-Exam-SY0-7...
emestica1
 
ProjectArtificial Intelligence Good or Evil.pptx
ProjectArtificial Intelligence Good or Evil.pptxProjectArtificial Intelligence Good or Evil.pptx
ProjectArtificial Intelligence Good or Evil.pptx
OlenaKotovska
 
34 Mobile Payment (Thomas Lerner (auth.).pdf
34 Mobile Payment (Thomas Lerner (auth.).pdf34 Mobile Payment (Thomas Lerner (auth.).pdf
34 Mobile Payment (Thomas Lerner (auth.).pdf
Nguyễn Minh
 
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
23 Introduction to E-Commerce ( PDFDrive ) (1).pdf
Nguyễn Minh
 
34 E-commerce - business, technology and society (2022).pdf
34 E-commerce - business, technology and society (2022).pdf34 E-commerce - business, technology and society (2022).pdf
34 E-commerce - business, technology and society (2022).pdf
Nguyễn Minh
 
IoT PPT introduction to internet of things
IoT PPT introduction to internet of thingsIoT PPT introduction to internet of things
IoT PPT introduction to internet of things
VaishnaviPatil3995
 
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade _ by Slidesgo.pptx
SergioBarreno2
 
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC Policy Update and Participation, presented at TWNIC 43rd IP Open Policy...
APNIC
 
Presentation Mehdi Monitorama 2022 Cancer and Monitoring
Presentation Mehdi Monitorama 2022 Cancer and MonitoringPresentation Mehdi Monitorama 2022 Cancer and Monitoring
Presentation Mehdi Monitorama 2022 Cancer and Monitoring
mdaoudi
 
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
美国文凭明尼苏达大学莫里斯分校毕业证范本UMM学位证书
Taqyea
 
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdfGiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
Giacomo Vacca
 
Breaking Down the Latest Spectrum Internet Plans.pdf
Breaking Down the Latest Spectrum Internet Plans.pdfBreaking Down the Latest Spectrum Internet Plans.pdf
Breaking Down the Latest Spectrum Internet Plans.pdf
Internet Bundle Now
 
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
34 Turban Electronic Commerce 2018_ A Managerial and Social Networks Perspect...
Nguyễn Minh
 
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness GuideThe Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
The Hidden Risks of Hiring Hackers to Change Grades: An Awareness Guide
russellpeter1995
 
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
34 Global Mobile Commerce_ Strategies, Implementation and Case Studies (Premi...
Nguyễn Minh
 
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
34 E-commerce and M-commerce technologies (P. Candace Deans 2006).pdf
Nguyễn Minh
 
Ad

16- Learn CSS Fundamentals / Background

  • 1. IN A ROCKET Learn front-end development at rocket speed CSS CSS FUNDAMENTALS Background
  • 2. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com background-image background-color X Y background-position background-repeat background-attachment
  • 3. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 4. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-COLOR div { width: 550px; height: 550px; background-color: #72B63C; } Enter any color format
  • 5. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 6. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com background-image url(image) linear-gradient radial-gradient
  • 7. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); }
  • 8. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com background-image url(image) linear-gradient radial-gradient
  • 9. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: linear-gradient(blue, yellow); } LINEAR GRADIENT / VERTICAL READY TO USE CODE
  • 10. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: linear-gradient(to right, blue , yellow); } LINEAR GRADIENT / HORIZONTAL READY TO USE CODE
  • 11. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: linear-gradient(to bottom right, blue, yellow); } LINEAR GRADIENT / DIAGONAL READY TO USE CODE
  • 12. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: linear-gradient(-90deg, blue, yellow); } LINEAR GRADIENT / USING ANGLES 180° -180° 0° 360° 270° -90° 90° -270° READY TO USE CODE
  • 13. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: linear-gradient(blue, yellow, green); } LINEAR GRADIENT / MULTIPLE COLOR STOPS READY TO USE CODE
  • 14. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: repeating-linear-gradient(180deg, blue, yellow 33%); } LINEAR GRADIENT / REPEATING READY TO USE CODE 33% 33% 33%
  • 15. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com background-image url(image) linear-gradient radial-gradient
  • 16. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE 0% Gradient ray 100% Ending shape
  • 17. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: radial-gradient(blue, yellow); } RADIAL GRADIENT / NORMAL READY TO USE CODE
  • 18. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: radial-gradient(circle at top right, blue, yellow); } RADIAL GRADIENT / POSITION READY TO USE CODE
  • 19. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-IMAGE div { width: 550px; height: 550px; background-image: radial-gradient(blue 0%, yellow 20%, green 60%); } RADIAL GRADIENT / MULTIPLE COLOR STOPS READY TO USE CODE
  • 20. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 21. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-REPEAT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: ; } repeat-x repeat-y repeat no-repeat
  • 22. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-REPEAT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: ; } repeat-x repeat-y repeat no-repeat
  • 23. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-REPEAT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: ; } repeat-x repeat-y repeat no-repeat
  • 24. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-REPEAT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: ; } repeat-x repeat-y repeat no-repeat
  • 25. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 26. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-ATTACHMENT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: no-repeat; background-attachment: ; } scroll fixed Scrolls with the page.
  • 27. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-ATTACHMENT div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: no-repeat; background-attachment: ; } scroll fixed Does not scroll with the page.
  • 28. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 29. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-POSITION div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: no-repeat; background-attachment: scroll; background-position: 100px 20px; } X Y
  • 30. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-POSITION div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: no-repeat; background-attachment: scroll; background-position: 50% 50%; } X Y
  • 31. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND-POSITION div { width: 550px; height: 550px; background-color: #72B63C; background-image: url("tree.png"); background-repeat: no-repeat; background-attachment: scroll; background-position: ; } X top left bottom right Y
  • 32. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com IMAGE REPEATCOLOR POSITIONATTACHMENT
  • 33. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com BACKGROUND SHORTHAND div { background: color image repetition attachment position } background: #0f0 url("tree.png") no-repeat fixed right top EXAMPLE
  • 35. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: CHROME DEVELOPER TOOLS Contrast information
  • 36. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: CHROME DEVELOPER TOOLS Meets the minimum recommended contrast ratio (AA). Meets the enhanced recommended contrast ratio (AAA).
  • 37. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: GRADIENT MAGIC
  • 38. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: WEBGRADIENTS
  • 39. Learn front-end development at rocket speed inarocket.com by miguelsanchez.com YOU CAN CONTINUE THIS COURSE FOR FREE ON + READY TO USE CODE + QUIZZES + FREE UPDATES
  • 40. We respect your time
 No more blah blah videos. Just straight to the point slides with relevant information. Ready to use code
 Real code you can just copy and paste into your real projects. Step by step guides
 Clear and concise steps to build real use solutions. No missed points. Learn front-end development at rocket speed inarocket.com
  • 41. IN A ROCKET Learn front-end development at rocket speed CSS CSS FUNDAMENTALS Background