SlideShare a Scribd company logo
How to Use CSS3 in
WordPress
WordCamp Toronto 2015
by
Suzette Franck
Who I Am
HTML and CSS teacher for Girl Develop It, 

Los Angeles Chapter
Freelancing Front End Developer
Born in Hollywood, Resides in S. California
Over 20 Years Coding & Web Development
Developed Over 300 WordPress Sites
Spoken at 25 WordCamps US & Canada
Regular Contributor: WPwatercooler.com
Hobbies: Crocheting & Adult Coloring Books
Twitter:
suzette_franck
My Goal
Teach you at least one thing that
you didn’t know before that will
change how you work forever
What We Will Cover?
What is CSS/CSS3?
Using CSS in WordPress
CSS Resources
What is CSS/CSS3?
CSS/CSS3 Basics
Cascading Style Sheet language written in plain text
Used with HTML to give style/design to HTML elements
CSS3 is he latest evolution of CSS, which is meant to
extend CSS 2.1, the previous version
CSS3 is backwards compatible with all versions of CSS
In WordPress, CSS code is most often put in a style.css
plain text file in the starter, parent, or child theme
folder in wp-content
Most themes have an “Edit CSS” option, or you can
install a plugin to add your own CSS.
Example of CSS Code
Terminology & 

Basic CSS Syntax
CSS Terminology
Syntax refers to the proper format with punctuation for a line of
code
Selectors select the HTML element to be styled and is placed on
the left side of curly braces, which surround the style
declarations
Each declaration includes one property: value(s); pair
Spaces and tabs are ignored in CSS, use often and generously
for easy reading!
p { 

background-color: black;

color: red; 

font-size: 1.5em;

}
CSS Syntax
h1 {
color: deeppink;
font-size: 18px;
font-weight: bold;
}
selector {
property: value;
}
CSS Properties
browse
http://www.w3schools.com/cssref/
or
google it
CSS Comments
p {
color: #FF0000; /* red */
/* This is a single-line comment */
text-align: center;
}
/* ——————-This is a
xxxxxxxx multi-line xxxxxxxx
comment ————- */
CSS Specificity
More specific overrides less specific
IDs override classes
Inline CSS overrides IDs
!important used at the end of a declaration overrides Inline
CSS
Closest rule or declaration beats out remote declarations
http://www.smashingmagazine.com/2007/07/css-
specificity-things-you-should-know/
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
What color is the “Home” text based on below styles?
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
What color is the “Home” text based on below styles?
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
Bonus: what color is the bullet?
Inspecting CSS
Inspecting CSS w/Chrome
View > Developer > Developer Tools
or right-mouse click on the page > Inspect Element
Inspecting CSS w/Chrome
New CSS3 Modules
New CSS3 Modules
Colors & Transparency
CSS Gradients
Border Radius (Rounded Corners)
Box Shadow & Text Shadow
Transformations and Animations
Web Fonts @font-face
Media Queries (Responsive Design)
CSS3 Colors
CSS2: 17 Color Names / CSS3: 140 Color Names
http://www.w3schools.com/cssref/css_colornames.asp
New Alpha on Reg-Green-Blue Values
rgba( 255, 0, 0, 0.5 );
Specify Hue, Saturation, Lightness, alone or with Alpha Values
hsla( 120, 100%, 50%, 0.5 );
Opacity Property (0 transparent 1 opaque)
http://www.w3schools.com/cssref/css_colors_legal.asp
CSS3 Colors
CSS3 Gradients
.fancy {
background: -webkit-linear-gradient(red, green, blue); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(red, green, blue); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(red, green, blue); /* For Firefox 3.6 to 15 */
background: linear-gradient(red, green, blue); /* Standard syntax */
}
http://www.w3schools.com/css/
css3_gradients.asp
CSS3 Gradients
http://www.colorzilla.com/gradient-editor/
border-radius
Accepts px or %
Don’t forget to add vendor prefixes!
.rounded {
border-top-left-radius: 5px;
border-top-right-radius: 10px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 15px;
}
or use the shorthand:
.rounded {
border-radius: 5px 10px 20px 15px;
}
border-radius
http://border-radius.com/
Using CSS3 in WordPress
Where Do You Put CSS in WordPress?
Installed Theme’s Custom CSS Option
Jetpack’s “Edit CSS” Module (my favorite)
Simple Custom CSS Plugin (if not using Jetpack)
Page/Post editor via Inline Styles
Child Theme’s style.css file
Starter Theme’s style.css file
Jetpack’s Edit CSS Module
Once activated, go to Appearance > Edit CSS
Simple Custom CSS
Once activated, go to Appearance > Custom
Inline CSS in Editor
Add style attribute to opening tag in Text view
<p style=“property: value; property: value;”>
Considered hacky/janky/ bad practice, but works in a fix!
Child Theme’s style.css
Child Themes inherit Parent Theme’s functionality
Modifications not overwritten when Parent Theme updates
Best method for extensive modifications
More info on creating Child Themes on the Codex:



https://codex.wordpress.org/Child_Themes
Child Theme Plugins (Orbisius, One-click, Configurator)
Starter Theme’s style.css
Starter Themes include basic theme files
Make your own custom theme from them
Where Do You Not Put CSS?
Linked to a stylesheet in the header.php (use wp_enqueue)
Using the native WordPress Theme Editor to edit style.css
directly ( No undo or version history! )
CSS Resources
CSS Resources
http://www.csszengarden.com/
http://www.w3schools.com/css/css3_intro.asp
https://css-tricks.com/+ https://css-tricks.com/almanac
http://girldevelopit.com Take an HTML/CSS class
Q & A
Any Questions?
Thank you for being here!
Suzette Franck
Twitter: @suzette_franck

linkedin & speakerdeck & slideshare

More Related Content

What's hot (20)

Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSS
Todd Anglin
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 Minutes
Patrick Crowley
 
Why You Need a Front End Developer
Why You Need a Front End DeveloperWhy You Need a Front End Developer
Why You Need a Front End Developer
Mike Wilcox
 
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 For Backend Developers
CSS For Backend DevelopersCSS For Backend Developers
CSS For Backend Developers
10Clouds
 
Worry free web development
Worry free web developmentWorry free web development
Worry free web development
Estelle Weyl
 
Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013
Andrea Tarr
 
6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable
10Clouds
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
Russ Weakley
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Sean Wolfe
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
Rahul Mishra
 
LESS, the CSS Preprocessor
LESS, the CSS PreprocessorLESS, the CSS Preprocessor
LESS, the CSS Preprocessor
Andrea Tarr
 
CSS Tricks for WordPress - WordCamp Phoenix
CSS Tricks for WordPress - WordCamp PhoenixCSS Tricks for WordPress - WordCamp Phoenix
CSS Tricks for WordPress - WordCamp Phoenix
Sara Cannon
 
CSS in React
CSS in ReactCSS in React
CSS in React
Joe Seifi
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Estelle Weyl
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
Chris Love
 
Using Core Themes in Drupal 8
Using Core Themes in Drupal 8Using Core Themes in Drupal 8
Using Core Themes in Drupal 8
Suzanne Dergacheva
 
Responsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNNResponsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNN
gravityworksdd
 
CSS pattern libraries
CSS pattern librariesCSS pattern libraries
CSS pattern libraries
Russ Weakley
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSS
Todd Anglin
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 Minutes
Patrick Crowley
 
Why You Need a Front End Developer
Why You Need a Front End DeveloperWhy You Need a Front End Developer
Why You Need a Front End Developer
Mike Wilcox
 
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 For Backend Developers
CSS For Backend DevelopersCSS For Backend Developers
CSS For Backend Developers
10Clouds
 
Worry free web development
Worry free web developmentWorry free web development
Worry free web development
Estelle Weyl
 
Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013
Andrea Tarr
 
6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable
10Clouds
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Sean Wolfe
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
Rahul Mishra
 
LESS, the CSS Preprocessor
LESS, the CSS PreprocessorLESS, the CSS Preprocessor
LESS, the CSS Preprocessor
Andrea Tarr
 
CSS Tricks for WordPress - WordCamp Phoenix
CSS Tricks for WordPress - WordCamp PhoenixCSS Tricks for WordPress - WordCamp Phoenix
CSS Tricks for WordPress - WordCamp Phoenix
Sara Cannon
 
CSS in React
CSS in ReactCSS in React
CSS in React
Joe Seifi
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Estelle Weyl
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
Chris Love
 
Responsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNNResponsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNN
gravityworksdd
 
CSS pattern libraries
CSS pattern librariesCSS pattern libraries
CSS pattern libraries
Russ Weakley
 

Viewers also liked (20)

How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing PagesHow to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
Brendan Sera-Shriar
 
Systematic Unit Testing
Systematic Unit TestingSystematic Unit Testing
Systematic Unit Testing
scotchfield
 
Help Me Help You: Practical Tips for Designers from A WordPress Developer
Help Me Help You: Practical Tips for Designers from A WordPress DeveloperHelp Me Help You: Practical Tips for Designers from A WordPress Developer
Help Me Help You: Practical Tips for Designers from A WordPress Developer
daraskolnick
 
Building and Maintaining A Remote Workforce - A Startup Story
Building and Maintaining A Remote Workforce - A Startup StoryBuilding and Maintaining A Remote Workforce - A Startup Story
Building and Maintaining A Remote Workforce - A Startup Story
Sucuri
 
Ecomm 101
Ecomm 101Ecomm 101
Ecomm 101
Al Davis
 
Using Actions and Filters in WordPress to Make a Plugin Your Own
Using Actions and Filters in WordPress to Make a Plugin Your OwnUsing Actions and Filters in WordPress to Make a Plugin Your Own
Using Actions and Filters in WordPress to Make a Plugin Your Own
Brian Hogg
 
Here Be Dragons - Debugging WordPress
Here Be Dragons - Debugging WordPressHere Be Dragons - Debugging WordPress
Here Be Dragons - Debugging WordPress
Rami Sayar
 
How I Made a Career Using WordPress Without Knowing a Line of Code
How I Made a Career Using WordPress Without Knowing a Line of CodeHow I Made a Career Using WordPress Without Knowing a Line of Code
How I Made a Career Using WordPress Without Knowing a Line of Code
Andrea Zoellner
 
Wordcamp_mcglade_ux_mashups
Wordcamp_mcglade_ux_mashupsWordcamp_mcglade_ux_mashups
Wordcamp_mcglade_ux_mashups
Analytical Engine Interactive Inc.
 
WordCamp Toronto 2015- API Simple Talk
WordCamp Toronto 2015- API Simple TalkWordCamp Toronto 2015- API Simple Talk
WordCamp Toronto 2015- API Simple Talk
ting-y
 
Community Consultation Creates Compelling Content
Community Consultation Creates Compelling Content  Community Consultation Creates Compelling Content
Community Consultation Creates Compelling Content
Christine Pollock
 
You have 2 hands Toronto
You have 2 hands TorontoYou have 2 hands Toronto
You have 2 hands Toronto
Shayda Torabi
 
A Noob's Journey to the Core
A Noob's Journey to the CoreA Noob's Journey to the Core
A Noob's Journey to the Core
Ryan Welcher
 
Mystery solved pages vs posts
Mystery solved pages vs postsMystery solved pages vs posts
Mystery solved pages vs posts
Trailer Trash Design
 
Writing Secure Code for WordPress
Writing Secure Code for WordPressWriting Secure Code for WordPress
Writing Secure Code for WordPress
Shawn Hooper
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
Managed WordPress Demystified
Managed WordPress DemystifiedManaged WordPress Demystified
Managed WordPress Demystified
NewPath Consulting (Technology for Small Business)
 
Best Friend || Worst Enemy: WordPress Multisite
Best Friend || Worst Enemy: WordPress MultisiteBest Friend || Worst Enemy: WordPress Multisite
Best Friend || Worst Enemy: WordPress Multisite
Taylor McCaslin
 
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Delightful Design with the Kano Model (WordCamp Toronto 2015)Delightful Design with the Kano Model (WordCamp Toronto 2015)
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Jesse Emmanuel Rosario
 
Multilingual content with WordPress
Multilingual content with WordPressMultilingual content with WordPress
Multilingual content with WordPress
Desaulniers-Simard
 
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing PagesHow to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
Brendan Sera-Shriar
 
Systematic Unit Testing
Systematic Unit TestingSystematic Unit Testing
Systematic Unit Testing
scotchfield
 
Help Me Help You: Practical Tips for Designers from A WordPress Developer
Help Me Help You: Practical Tips for Designers from A WordPress DeveloperHelp Me Help You: Practical Tips for Designers from A WordPress Developer
Help Me Help You: Practical Tips for Designers from A WordPress Developer
daraskolnick
 
Building and Maintaining A Remote Workforce - A Startup Story
Building and Maintaining A Remote Workforce - A Startup StoryBuilding and Maintaining A Remote Workforce - A Startup Story
Building and Maintaining A Remote Workforce - A Startup Story
Sucuri
 
Using Actions and Filters in WordPress to Make a Plugin Your Own
Using Actions and Filters in WordPress to Make a Plugin Your OwnUsing Actions and Filters in WordPress to Make a Plugin Your Own
Using Actions and Filters in WordPress to Make a Plugin Your Own
Brian Hogg
 
Here Be Dragons - Debugging WordPress
Here Be Dragons - Debugging WordPressHere Be Dragons - Debugging WordPress
Here Be Dragons - Debugging WordPress
Rami Sayar
 
How I Made a Career Using WordPress Without Knowing a Line of Code
How I Made a Career Using WordPress Without Knowing a Line of CodeHow I Made a Career Using WordPress Without Knowing a Line of Code
How I Made a Career Using WordPress Without Knowing a Line of Code
Andrea Zoellner
 
WordCamp Toronto 2015- API Simple Talk
WordCamp Toronto 2015- API Simple TalkWordCamp Toronto 2015- API Simple Talk
WordCamp Toronto 2015- API Simple Talk
ting-y
 
Community Consultation Creates Compelling Content
Community Consultation Creates Compelling Content  Community Consultation Creates Compelling Content
Community Consultation Creates Compelling Content
Christine Pollock
 
You have 2 hands Toronto
You have 2 hands TorontoYou have 2 hands Toronto
You have 2 hands Toronto
Shayda Torabi
 
A Noob's Journey to the Core
A Noob's Journey to the CoreA Noob's Journey to the Core
A Noob's Journey to the Core
Ryan Welcher
 
Writing Secure Code for WordPress
Writing Secure Code for WordPressWriting Secure Code for WordPress
Writing Secure Code for WordPress
Shawn Hooper
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
Best Friend || Worst Enemy: WordPress Multisite
Best Friend || Worst Enemy: WordPress MultisiteBest Friend || Worst Enemy: WordPress Multisite
Best Friend || Worst Enemy: WordPress Multisite
Taylor McCaslin
 
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Delightful Design with the Kano Model (WordCamp Toronto 2015)Delightful Design with the Kano Model (WordCamp Toronto 2015)
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Jesse Emmanuel Rosario
 
Multilingual content with WordPress
Multilingual content with WordPressMultilingual content with WordPress
Multilingual content with WordPress
Desaulniers-Simard
 

Similar to How to use CSS3 in WordPress (20)

01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
crgwbr
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Web - CSS 1.pptx
Web - CSS 1.pptxWeb - CSS 1.pptx
Web - CSS 1.pptx
haroon451422
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
Jalpesh Vasa
 
Intro to CSS with OvationTix's User Experience Lead
 Intro to CSS with OvationTix's User Experience Lead Intro to CSS with OvationTix's User Experience Lead
Intro to CSS with OvationTix's User Experience Lead
Product School
 
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
GDG On Campus  NBNSCOE Web Workshop Day 1 : HTML & CSSGDG On Campus  NBNSCOE Web Workshop Day 1 : HTML & CSS
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
Intro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 SlidesIntro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
David Weliver
David WeliverDavid Weliver
David Weliver
Philip Taylor
 
css3.0.( Cascading Style Sheets ) pptx
css3.0.( Cascading  Style  Sheets ) pptxcss3.0.( Cascading  Style  Sheets ) pptx
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
Tanu524249
 
Shyam sunder Rajasthan Computer
Shyam sunder Rajasthan ComputerShyam sunder Rajasthan Computer
Shyam sunder Rajasthan Computer
shyamverma305
 
CSS3
CSS3CSS3
CSS3
Chathuranga Jayanath
 
Evolution of CSS
Evolution of CSSEvolution of CSS
Evolution of CSS
Ecaterina Moraru (Valica)
 
Internet tech &amp; web prog. p4,5
Internet tech &amp; web prog.  p4,5Internet tech &amp; web prog.  p4,5
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Seble Nigussie
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
Css
CssCss
Css
NIRMAL FELIX
 
CSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - ImrokraftCSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - Imrokraft
imrokraft
 
Css3
Css3Css3
Css3
Renzil D'cruz
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
crgwbr
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
Jalpesh Vasa
 
Intro to CSS with OvationTix's User Experience Lead
 Intro to CSS with OvationTix's User Experience Lead Intro to CSS with OvationTix's User Experience Lead
Intro to CSS with OvationTix's User Experience Lead
Product School
 
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
GDG On Campus  NBNSCOE Web Workshop Day 1 : HTML & CSSGDG On Campus  NBNSCOE Web Workshop Day 1 : HTML & CSS
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
Intro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 SlidesIntro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
css3.0.( Cascading Style Sheets ) pptx
css3.0.( Cascading  Style  Sheets ) pptxcss3.0.( Cascading  Style  Sheets ) pptx
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
Tanu524249
 
Shyam sunder Rajasthan Computer
Shyam sunder Rajasthan ComputerShyam sunder Rajasthan Computer
Shyam sunder Rajasthan Computer
shyamverma305
 
Internet tech &amp; web prog. p4,5
Internet tech &amp; web prog.  p4,5Internet tech &amp; web prog.  p4,5
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
CSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - ImrokraftCSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - Imrokraft
imrokraft
 

More from Suzette Franck (10)

WCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art StoreWCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art Store
Suzette Franck
 
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
Suzette Franck
 
GDI - Intro to WordPress
GDI - Intro to WordPressGDI - Intro to WordPress
GDI - Intro to WordPress
Suzette Franck
 
Introduction to Backups and Security
Introduction to Backups and SecurityIntroduction to Backups and Security
Introduction to Backups and Security
Suzette Franck
 
WP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress MeetupWP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress Meetup
Suzette Franck
 
Buddypress Pasadena Meetup
Buddypress Pasadena MeetupBuddypress Pasadena Meetup
Buddypress Pasadena Meetup
Suzette Franck
 
WordPress Security
WordPress SecurityWordPress Security
WordPress Security
Suzette Franck
 
Design Best Practices for WordPress
Design Best Practices for WordPressDesign Best Practices for WordPress
Design Best Practices for WordPress
Suzette Franck
 
Jetpack 2.0
Jetpack 2.0Jetpack 2.0
Jetpack 2.0
Suzette Franck
 
BuddyPress OCWC 2010
BuddyPress OCWC 2010BuddyPress OCWC 2010
BuddyPress OCWC 2010
Suzette Franck
 
WCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art StoreWCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art Store
Suzette Franck
 
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
Suzette Franck
 
GDI - Intro to WordPress
GDI - Intro to WordPressGDI - Intro to WordPress
GDI - Intro to WordPress
Suzette Franck
 
Introduction to Backups and Security
Introduction to Backups and SecurityIntroduction to Backups and Security
Introduction to Backups and Security
Suzette Franck
 
WP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress MeetupWP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress Meetup
Suzette Franck
 
Buddypress Pasadena Meetup
Buddypress Pasadena MeetupBuddypress Pasadena Meetup
Buddypress Pasadena Meetup
Suzette Franck
 
Design Best Practices for WordPress
Design Best Practices for WordPressDesign Best Practices for WordPress
Design Best Practices for WordPress
Suzette Franck
 

Recently uploaded (20)

GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Gihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai TechnologyGihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai Technology
zainkhurram1111
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
 
Fortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in CybersecurityFortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in Cybersecurity
VICTOR MAESTRE RAMIREZ
 
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 ADr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr. Jimmy Schwarzkopf
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Cyber Security Legal Framework in Nepal.pptx
Cyber Security Legal Framework in Nepal.pptxCyber Security Legal Framework in Nepal.pptx
Cyber Security Legal Framework in Nepal.pptx
Ghimire B.R.
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025
Prasta Maha
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Gihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai TechnologyGihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai Technology
zainkhurram1111
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
 
Fortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in CybersecurityFortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in Cybersecurity
VICTOR MAESTRE RAMIREZ
 
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 ADr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr. Jimmy Schwarzkopf
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Cyber Security Legal Framework in Nepal.pptx
Cyber Security Legal Framework in Nepal.pptxCyber Security Legal Framework in Nepal.pptx
Cyber Security Legal Framework in Nepal.pptx
Ghimire B.R.
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025
Prasta Maha
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 

How to use CSS3 in WordPress

  • 1. How to Use CSS3 in WordPress WordCamp Toronto 2015 by Suzette Franck
  • 2. Who I Am HTML and CSS teacher for Girl Develop It, 
 Los Angeles Chapter Freelancing Front End Developer Born in Hollywood, Resides in S. California Over 20 Years Coding & Web Development Developed Over 300 WordPress Sites Spoken at 25 WordCamps US & Canada Regular Contributor: WPwatercooler.com Hobbies: Crocheting & Adult Coloring Books Twitter: suzette_franck
  • 3. My Goal Teach you at least one thing that you didn’t know before that will change how you work forever
  • 4. What We Will Cover? What is CSS/CSS3? Using CSS in WordPress CSS Resources
  • 6. CSS/CSS3 Basics Cascading Style Sheet language written in plain text Used with HTML to give style/design to HTML elements CSS3 is he latest evolution of CSS, which is meant to extend CSS 2.1, the previous version CSS3 is backwards compatible with all versions of CSS In WordPress, CSS code is most often put in a style.css plain text file in the starter, parent, or child theme folder in wp-content Most themes have an “Edit CSS” option, or you can install a plugin to add your own CSS.
  • 9. CSS Terminology Syntax refers to the proper format with punctuation for a line of code Selectors select the HTML element to be styled and is placed on the left side of curly braces, which surround the style declarations Each declaration includes one property: value(s); pair Spaces and tabs are ignored in CSS, use often and generously for easy reading! p { 
 background-color: black;
 color: red; 
 font-size: 1.5em;
 }
  • 10. CSS Syntax h1 { color: deeppink; font-size: 18px; font-weight: bold; } selector { property: value; }
  • 12. CSS Comments p { color: #FF0000; /* red */ /* This is a single-line comment */ text-align: center; } /* ——————-This is a xxxxxxxx multi-line xxxxxxxx comment ————- */
  • 13. CSS Specificity More specific overrides less specific IDs override classes Inline CSS overrides IDs !important used at the end of a declaration overrides Inline CSS Closest rule or declaration beats out remote declarations http://www.smashingmagazine.com/2007/07/css- specificity-things-you-should-know/
  • 14. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> What color is the “Home” text based on below styles?
  • 15. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> What color is the “Home” text based on below styles?
  • 16. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> Bonus: what color is the bullet?
  • 18. Inspecting CSS w/Chrome View > Developer > Developer Tools or right-mouse click on the page > Inspect Element
  • 21. New CSS3 Modules Colors & Transparency CSS Gradients Border Radius (Rounded Corners) Box Shadow & Text Shadow Transformations and Animations Web Fonts @font-face Media Queries (Responsive Design)
  • 22. CSS3 Colors CSS2: 17 Color Names / CSS3: 140 Color Names http://www.w3schools.com/cssref/css_colornames.asp New Alpha on Reg-Green-Blue Values rgba( 255, 0, 0, 0.5 ); Specify Hue, Saturation, Lightness, alone or with Alpha Values hsla( 120, 100%, 50%, 0.5 ); Opacity Property (0 transparent 1 opaque) http://www.w3schools.com/cssref/css_colors_legal.asp
  • 24. CSS3 Gradients .fancy { background: -webkit-linear-gradient(red, green, blue); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(red, green, blue); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, green, blue); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, green, blue); /* Standard syntax */ } http://www.w3schools.com/css/ css3_gradients.asp
  • 26. border-radius Accepts px or % Don’t forget to add vendor prefixes! .rounded { border-top-left-radius: 5px; border-top-right-radius: 10px; border-bottom-right-radius: 20px; border-bottom-left-radius: 15px; } or use the shorthand: .rounded { border-radius: 5px 10px 20px 15px; }
  • 28. Using CSS3 in WordPress
  • 29. Where Do You Put CSS in WordPress? Installed Theme’s Custom CSS Option Jetpack’s “Edit CSS” Module (my favorite) Simple Custom CSS Plugin (if not using Jetpack) Page/Post editor via Inline Styles Child Theme’s style.css file Starter Theme’s style.css file
  • 30. Jetpack’s Edit CSS Module Once activated, go to Appearance > Edit CSS
  • 31. Simple Custom CSS Once activated, go to Appearance > Custom
  • 32. Inline CSS in Editor Add style attribute to opening tag in Text view <p style=“property: value; property: value;”> Considered hacky/janky/ bad practice, but works in a fix!
  • 33. Child Theme’s style.css Child Themes inherit Parent Theme’s functionality Modifications not overwritten when Parent Theme updates Best method for extensive modifications More info on creating Child Themes on the Codex:
 
 https://codex.wordpress.org/Child_Themes Child Theme Plugins (Orbisius, One-click, Configurator)
  • 34. Starter Theme’s style.css Starter Themes include basic theme files Make your own custom theme from them
  • 35. Where Do You Not Put CSS? Linked to a stylesheet in the header.php (use wp_enqueue) Using the native WordPress Theme Editor to edit style.css directly ( No undo or version history! )
  • 38. Q & A Any Questions?
  • 39. Thank you for being here! Suzette Franck Twitter: @suzette_franck
 linkedin & speakerdeck & slideshare