SlideShare a Scribd company logo
Crafting Custom CSS
Andy McIlwain (www.andymci.com)
PodCampToronto 2015 | #pcto15
Crafting Custom CSS | @andymci | #PCTO152015-02-21 1
Hi! I’m Andy McIlwain.
Developer at:
Brainrider
Marketers Without Borders
Events&
Instructor/Mentor at:
Camp Tech
Ladies Learning Code
Organizer with:
Toronto WordPress Meetups
WordCamp Toronto
Find me online:
@andymci on Twitter
linkedin.com/in/andymci
instagram.com/andy.mcilwa
in
Crafting Custom CSS | @andymci | #PCTO152015-02-21 2
Why learn CSS?
Immediate gratification!
Make changes to code, see
changes take effect
High reward.
You can make sites look
completely different with
Low risk.
If something goes wrong in
CSS, it’s easy to recover.
It’s a standard.
It doesn’t matter what
service or platform you’re
using. Use your CSS skillz
everywhere!
Crafting Custom CSS | @andymci | #PCTO152015-02-21 3
The Structure
Host / Service: Where your
webpage lives.
HTML: The page structure
and content.
CSS: Rules that control the
“look and feel” of the
JavaScript: Adds interaction,
effects, and additional
functionality. Host / Service
HTML
CSS JavaScript
Crafting Custom CSS | @andymci | #PCTO152015-02-21 4
It’s like building a house!
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 5
We choose what to build on.
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 6
Then we set up the structure.
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 7
Set up controls and interaction.
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 8
Then we make everything pretty.
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 9
Today we’ll look at HTML & CSS.
Host / Service
HTML
CSS JavaScript
Foundation
Framing, Flooring,
Drywall
Fixtures,
Carpeting, Paint
Electrical,
Plumbing, HVAC
Crafting Custom CSS | @andymci | #PCTO152015-02-21 10
HTML Tags
HTML tags are to web pages as
frames are houses. Key points:
• Wraps content
• Defines parts of the page
• Uses classes and IDs
<body>
<div id=“head”>
<h1>This Is A Headline</h1>
</div>
<div id=“content”>
<p>This is a paragraph of
content. There are many like
it, this one is mine.</p>
</div>
</body>
Crafting Custom CSS | @andymci | #PCTO152015-02-21 11
CSS
CSS stands for Cascading Style
Sheets.They control the “look and
and feel” of web pages. If we were
building a house, CSS would be in
charge of laying the carpet and
painting the walls.
Key points to remember:
• CSS sets appearance rules for
HTML
• Targets elements, classes, and IDs
• Rules wrapped in “curly brackets”
{ like this }
body {
background: white;
font-family: Arial, sans-
serif;
}
#head {
background: black;
color: white;
}
#content p {
font-size: 14px;
margin: 10px 0;
}
Crafting Custom CSS | @andymci | #PCTO152015-02-21 12
How They Work Together
When your browser loads a page, it looks at
the elements on the page and checks if there
are CSS rules for those elements. Key points:
• HTML uses id and class
• CSS uses # and .
• When we see id, we target with #
• When we see class, we target with .
HTML CSS
<div id=“header”>
</div>
#header {}
<div class=“post”>
</div>
.post {}
Crafting Custom CSS | @andymci | #PCTO152015-02-21 13
Connecting HTML & CSS
HTML CSS
<body>
<div id=“header”>
</div>
<div id=“content”>
<div class=“post”>
</div>
</div>
<div id=“footer”>
</div>
</body>
body {}
#header {}
#content {}
.post {}
#footer {}
Crafting Custom CSS | @andymci | #PCTO152015-02-21 14
Getting More Specific
HTML CSS
<div class=“post”>
<h2>Post Title</h2>
<p>Paragraph of content.</p>
</div>
.post {}
<div class=“post”>
<h2>Post Title</h2>
<p>Paragraph of content.</p>
</div>
.post h2 {}
<div class=“post”>
<h2>Post Title</h2>
<p>Paragraph of content.</p>
</div>
.post p {}
Crafting Custom CSS | @andymci | #PCTO152015-02-21 15
What Rules Can We Use?
Some Example Rules What It Does
background-image: url(…) Defines background image.
float: left; Positioning relative to subsequent elements.
background-color: #fff; Defines background color.
font-family: Arial, sans-serif; Defines the font to use.
font-size: 24px; Defines the size of the font.
font-weight: bold; Defines the weight of the font.
color: red; Defines the colour of the font.
width: 400px; Defines the width of the targeted element.
height: 400px; Defines the height of the targeted element.
Find more rules at tympanus.net/codrops/css_reference/
Crafting Custom CSS | @andymci | #PCTO152015-02-21 16
CodePen Demo
Let’s play with some basic CSS:
http://codepen.io/andymci/pen/EaQEXW
Crafting Custom CSS | @andymci | #PCTO152015-02-21 17
Inspecting Other’s Work
• Your browser comes
equipped with
DeveloperTools
• You can inspect page
code
• You can play with code
that only affects your
browser
Here’s how you do it in Firefox, Chrome, Internet Explorer, and Safari.
Crafting Custom CSS | @andymci | #PCTO152015-02-21 18
Let’s look at some live sites.
CBC New Republic
PodCamp Toronto Apple
Crafting Custom CSS | @andymci | #PCTO152015-02-21 19
Applying Custom CSS
• Inspect your theme/layout
• Determine what you need to
target
• Test it out in your browser
• Apply rules to your
Custom CSS Editor
Platform Adding Custom CSS
WordPress.com Custom CSS Upgrade
WordPress Plugins Jetpack’s Custom CSS Module
Simple Custom CSS
Tumblr Custom CSS
Squarespace CSS Editor
Blogger Template Designer
Crafting Custom CSS | @andymci | #PCTO152015-02-21 20
Tumblr Demo
Let’s use myTumblr as a guinea pig.
Crafting Custom CSS | @andymci | #PCTO152015-02-21 21
Recap!
• HTML is the structure.
• CSS is the “look and feel”.
• CSS targets specific
IDs, and classes.
• Use Dev Tools to
what to target and
with CSS in your browser.
Crafting Custom CSS | @andymci | #PCTO152015-02-21 22
Host / Service
HTML
CSS JavaScript
Inspect with Dev Tools!
Useful Tools & Resources
CSS Reference
MDN CSS Reference
CoDrops CSS Reference
Inspiration
CSS Tricks
CSS Zen Garden
CSS Mania
Courses
Codecademy CSS Course
CodeSchool CSS
Treehouse CSS Basics
Useful Tools
CodePen (Recommended!)
CSS Desk
Crafting Custom CSS | @andymci | #PCTO152015-02-21 23
Thank You! Questions?
Slides will be posted online:
www.slideshare.net/andymci
Find me online:
www.andymci.com | @andymci | linkedin.com/in/andymci
Crafting Custom CSS | @andymci | #PCTO152015-02-21 24

More Related Content

What's hot (20)

PPT
Pertemuan 7
beiharira
 
PDF
Css introduction
Nicha Jutasirivongse
 
PDF
CSS Best practice
Russ Weakley
 
PPTX
Frameworks for the web
netfuel
 
PDF
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
PDF
Look ma! No images!
Lennart Schoors
 
PPTX
Lesson 109 23 aug13-1430-ay
Codecademy Ren
 
PPT
How to manage a big scale HTML/CSS project
Renoir Boulanger
 
PPTX
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
PDF
快速开发Css
tbmallf2e
 
PPTX
Lesson 107 23 aug13-1430-ay
Codecademy Ren
 
PDF
The Dark Arts of CSS
SiddharthBorderwala
 
KEY
Designing in the Browser - Mason Wendell, Drupaldelphia
canarymason
 
PDF
CSS Systems
Natalie Downe
 
PDF
Tech talk on Tailwind CSS
Squareboat
 
PDF
Efficient, maintainable CSS
Russ Weakley
 
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
PDF
Html css crash course may 11th, atlanta
Thinkful
 
PDF
Html for beginners
Florian Letsch
 
KEY
CSS3: stay tuned for style
Chris Mills
 
Pertemuan 7
beiharira
 
Css introduction
Nicha Jutasirivongse
 
CSS Best practice
Russ Weakley
 
Frameworks for the web
netfuel
 
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
Look ma! No images!
Lennart Schoors
 
Lesson 109 23 aug13-1430-ay
Codecademy Ren
 
How to manage a big scale HTML/CSS project
Renoir Boulanger
 
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
快速开发Css
tbmallf2e
 
Lesson 107 23 aug13-1430-ay
Codecademy Ren
 
The Dark Arts of CSS
SiddharthBorderwala
 
Designing in the Browser - Mason Wendell, Drupaldelphia
canarymason
 
CSS Systems
Natalie Downe
 
Tech talk on Tailwind CSS
Squareboat
 
Efficient, maintainable CSS
Russ Weakley
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
Html css crash course may 11th, atlanta
Thinkful
 
Html for beginners
Florian Letsch
 
CSS3: stay tuned for style
Chris Mills
 

Similar to Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15 (20)

PPTX
Introducing Cascading Style Sheets
St. Petersburg College
 
PPTX
Intro to WordPress Theming
Andy McIlwain
 
PPTX
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
PPTX
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
PDF
The CSS Handbook
jackchenvlo
 
PDF
04 CSS #burningkeyboards
Denis Ristic
 
PPTX
WEB TECHNOLOGY Unit-2.pptx
karthiksmart21
 
PPT
Css1
Pulkit Tanwar
 
PDF
CSS Introduction
Diliara Nasirova
 
PPTX
David Weliver
Philip Taylor
 
PPTX
Lecture 9 CSS part 1.pptxType Classification
ZahouAmel1
 
KEY
20120424 c
slidesharepimp
 
PPT
CSS Training in Bangalore
rajkamal560066
 
PPTX
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
PPTX
Css introduction
AbhishekMondal42
 
PPT
CSS-part-1.ppt
AshwaniKumarYadav19
 
PPTX
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
 
PPTX
lec11_CSS.pptx web page description desi
compengwaelalahmar
 
PPTX
Web Design Basics for Kids: HTML & CSS
AnnMarie Ppl
 
PDF
Vskills certified css designer Notes
Vskills
 
Introducing Cascading Style Sheets
St. Petersburg College
 
Intro to WordPress Theming
Andy McIlwain
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
The CSS Handbook
jackchenvlo
 
04 CSS #burningkeyboards
Denis Ristic
 
WEB TECHNOLOGY Unit-2.pptx
karthiksmart21
 
CSS Introduction
Diliara Nasirova
 
David Weliver
Philip Taylor
 
Lecture 9 CSS part 1.pptxType Classification
ZahouAmel1
 
20120424 c
slidesharepimp
 
CSS Training in Bangalore
rajkamal560066
 
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Css introduction
AbhishekMondal42
 
CSS-part-1.ppt
AshwaniKumarYadav19
 
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
 
lec11_CSS.pptx web page description desi
compengwaelalahmar
 
Web Design Basics for Kids: HTML & CSS
AnnMarie Ppl
 
Vskills certified css designer Notes
Vskills
 
Ad

More from Andy McIlwain (9)

PPTX
WordPress for All - WordCamp Rochester 2019
Andy McIlwain
 
PPTX
From Post to Podcast: PodCamp Toronto 2019
Andy McIlwain
 
PPTX
Embracing Gutenberg | WordCamp Rochester 2018
Andy McIlwain
 
PPTX
Content Creators Toolbox #WCTO16
Andy McIlwain
 
PPTX
Content Creation Regimen - WordCamp Hamilton 2016
Andy McIlwain
 
PPTX
Creating Communities - PodCamp Toronto 2016
Andy McIlwain
 
PPTX
10 Steps to Build a Business Website for Under $100
Andy McIlwain
 
PPTX
Marketing Automation with WordPress #MarketersUnbound
Andy McIlwain
 
PPTX
The Publishing Side of WordPress
Andy McIlwain
 
WordPress for All - WordCamp Rochester 2019
Andy McIlwain
 
From Post to Podcast: PodCamp Toronto 2019
Andy McIlwain
 
Embracing Gutenberg | WordCamp Rochester 2018
Andy McIlwain
 
Content Creators Toolbox #WCTO16
Andy McIlwain
 
Content Creation Regimen - WordCamp Hamilton 2016
Andy McIlwain
 
Creating Communities - PodCamp Toronto 2016
Andy McIlwain
 
10 Steps to Build a Business Website for Under $100
Andy McIlwain
 
Marketing Automation with WordPress #MarketersUnbound
Andy McIlwain
 
The Publishing Side of WordPress
Andy McIlwain
 
Ad

Recently uploaded (20)

PPTX
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
PPTX
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
PDF
Technical Guide to Build a Successful Shopify Marketplace from Scratch.pdf
CartCoders
 
PPTX
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
PPTX
internet básico presentacion es una red global
70965857
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PPTX
英国学位证(RCM毕业证书)皇家音乐学院毕业证书如何办理
Taqyea
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPTX
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PDF
How to Fix Error Code 16 in Adobe Photoshop A Step-by-Step Guide.pdf
Becky Lean
 
PPT
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PPT
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
PPTX
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PDF
Pas45789-Energs-Efficient-Craigg1ing.pdf
lafinedelcinghiale
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
Technical Guide to Build a Successful Shopify Marketplace from Scratch.pdf
CartCoders
 
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
internet básico presentacion es una red global
70965857
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
英国学位证(RCM毕业证书)皇家音乐学院毕业证书如何办理
Taqyea
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
How to Fix Error Code 16 in Adobe Photoshop A Step-by-Step Guide.pdf
Becky Lean
 
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
Pas45789-Energs-Efficient-Craigg1ing.pdf
lafinedelcinghiale
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 

Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15

  • 1. Crafting Custom CSS Andy McIlwain (www.andymci.com) PodCampToronto 2015 | #pcto15 Crafting Custom CSS | @andymci | #PCTO152015-02-21 1
  • 2. Hi! I’m Andy McIlwain. Developer at: Brainrider Marketers Without Borders Events& Instructor/Mentor at: Camp Tech Ladies Learning Code Organizer with: Toronto WordPress Meetups WordCamp Toronto Find me online: @andymci on Twitter linkedin.com/in/andymci instagram.com/andy.mcilwa in Crafting Custom CSS | @andymci | #PCTO152015-02-21 2
  • 3. Why learn CSS? Immediate gratification! Make changes to code, see changes take effect High reward. You can make sites look completely different with Low risk. If something goes wrong in CSS, it’s easy to recover. It’s a standard. It doesn’t matter what service or platform you’re using. Use your CSS skillz everywhere! Crafting Custom CSS | @andymci | #PCTO152015-02-21 3
  • 4. The Structure Host / Service: Where your webpage lives. HTML: The page structure and content. CSS: Rules that control the “look and feel” of the JavaScript: Adds interaction, effects, and additional functionality. Host / Service HTML CSS JavaScript Crafting Custom CSS | @andymci | #PCTO152015-02-21 4
  • 5. It’s like building a house! Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 5
  • 6. We choose what to build on. Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 6
  • 7. Then we set up the structure. Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 7
  • 8. Set up controls and interaction. Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 8
  • 9. Then we make everything pretty. Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 9
  • 10. Today we’ll look at HTML & CSS. Host / Service HTML CSS JavaScript Foundation Framing, Flooring, Drywall Fixtures, Carpeting, Paint Electrical, Plumbing, HVAC Crafting Custom CSS | @andymci | #PCTO152015-02-21 10
  • 11. HTML Tags HTML tags are to web pages as frames are houses. Key points: • Wraps content • Defines parts of the page • Uses classes and IDs <body> <div id=“head”> <h1>This Is A Headline</h1> </div> <div id=“content”> <p>This is a paragraph of content. There are many like it, this one is mine.</p> </div> </body> Crafting Custom CSS | @andymci | #PCTO152015-02-21 11
  • 12. CSS CSS stands for Cascading Style Sheets.They control the “look and and feel” of web pages. If we were building a house, CSS would be in charge of laying the carpet and painting the walls. Key points to remember: • CSS sets appearance rules for HTML • Targets elements, classes, and IDs • Rules wrapped in “curly brackets” { like this } body { background: white; font-family: Arial, sans- serif; } #head { background: black; color: white; } #content p { font-size: 14px; margin: 10px 0; } Crafting Custom CSS | @andymci | #PCTO152015-02-21 12
  • 13. How They Work Together When your browser loads a page, it looks at the elements on the page and checks if there are CSS rules for those elements. Key points: • HTML uses id and class • CSS uses # and . • When we see id, we target with # • When we see class, we target with . HTML CSS <div id=“header”> </div> #header {} <div class=“post”> </div> .post {} Crafting Custom CSS | @andymci | #PCTO152015-02-21 13
  • 14. Connecting HTML & CSS HTML CSS <body> <div id=“header”> </div> <div id=“content”> <div class=“post”> </div> </div> <div id=“footer”> </div> </body> body {} #header {} #content {} .post {} #footer {} Crafting Custom CSS | @andymci | #PCTO152015-02-21 14
  • 15. Getting More Specific HTML CSS <div class=“post”> <h2>Post Title</h2> <p>Paragraph of content.</p> </div> .post {} <div class=“post”> <h2>Post Title</h2> <p>Paragraph of content.</p> </div> .post h2 {} <div class=“post”> <h2>Post Title</h2> <p>Paragraph of content.</p> </div> .post p {} Crafting Custom CSS | @andymci | #PCTO152015-02-21 15
  • 16. What Rules Can We Use? Some Example Rules What It Does background-image: url(…) Defines background image. float: left; Positioning relative to subsequent elements. background-color: #fff; Defines background color. font-family: Arial, sans-serif; Defines the font to use. font-size: 24px; Defines the size of the font. font-weight: bold; Defines the weight of the font. color: red; Defines the colour of the font. width: 400px; Defines the width of the targeted element. height: 400px; Defines the height of the targeted element. Find more rules at tympanus.net/codrops/css_reference/ Crafting Custom CSS | @andymci | #PCTO152015-02-21 16
  • 17. CodePen Demo Let’s play with some basic CSS: http://codepen.io/andymci/pen/EaQEXW Crafting Custom CSS | @andymci | #PCTO152015-02-21 17
  • 18. Inspecting Other’s Work • Your browser comes equipped with DeveloperTools • You can inspect page code • You can play with code that only affects your browser Here’s how you do it in Firefox, Chrome, Internet Explorer, and Safari. Crafting Custom CSS | @andymci | #PCTO152015-02-21 18
  • 19. Let’s look at some live sites. CBC New Republic PodCamp Toronto Apple Crafting Custom CSS | @andymci | #PCTO152015-02-21 19
  • 20. Applying Custom CSS • Inspect your theme/layout • Determine what you need to target • Test it out in your browser • Apply rules to your Custom CSS Editor Platform Adding Custom CSS WordPress.com Custom CSS Upgrade WordPress Plugins Jetpack’s Custom CSS Module Simple Custom CSS Tumblr Custom CSS Squarespace CSS Editor Blogger Template Designer Crafting Custom CSS | @andymci | #PCTO152015-02-21 20
  • 21. Tumblr Demo Let’s use myTumblr as a guinea pig. Crafting Custom CSS | @andymci | #PCTO152015-02-21 21
  • 22. Recap! • HTML is the structure. • CSS is the “look and feel”. • CSS targets specific IDs, and classes. • Use Dev Tools to what to target and with CSS in your browser. Crafting Custom CSS | @andymci | #PCTO152015-02-21 22 Host / Service HTML CSS JavaScript Inspect with Dev Tools!
  • 23. Useful Tools & Resources CSS Reference MDN CSS Reference CoDrops CSS Reference Inspiration CSS Tricks CSS Zen Garden CSS Mania Courses Codecademy CSS Course CodeSchool CSS Treehouse CSS Basics Useful Tools CodePen (Recommended!) CSS Desk Crafting Custom CSS | @andymci | #PCTO152015-02-21 23
  • 24. Thank You! Questions? Slides will be posted online: www.slideshare.net/andymci Find me online: www.andymci.com | @andymci | linkedin.com/in/andymci Crafting Custom CSS | @andymci | #PCTO152015-02-21 24

Editor's Notes

  • #16: Be more precise with your CSS rules! - Look at surrounding elements. - Look at types of elements.