SlideShare a Scribd company logo
1 of 1
Download to read offline
Boxes
margin *
margin-top
margin-right
margin-bottom
margin-left
padding *
padding-top
padding-right
padding-bottom
padding-left
border *
border-top *
border-bottom *
border-right *
border-left *
border-color *
border-top-color
border-right-color
border-bottom-color
border-left-color
border-style *
border-top-style
border-right-style
border-bottom-style
border-left-style
border-width *
border-top-width
border-right-width
border-bottom-width
border-left-width
Positioning
display
position
top
right
bottom
left
float
clear
z-index
direction
unicode-bidi
overflow
clip
visibility
Dimensions
width
min-width
max-width
height
min-height
max-height
line-height
vertical-align
Miscellaneous
content
quotes
counter-reset
counter-increment
marker-offset
list-style *
list-style-type
list-style-image
list-style-position
Shorthand properties
are marked with *
Paging
size
marks
page-break-before
page-break-after
page-break-inside
page
orphans
widows
Color / Background
color
* background
background-color
background-image
background-repeat
background-attachment
background-position
Fonts
* font
font-family
font-style
font-variant
font-weight
font-stretch
font-size
font-size-adjust
Text
text-indent
text-align
text-decoration
text-shadow
letter-spacing
word-spacing
text-transform
white-space
Tables
caption-side
table-layout
border-collapse
border-spacing
empty-cells
speak-header
Interface
cursor
* outline
outline-width
outline-style
outline-color
Aural
volume
speak
* pause
pause-before
pause-after
* cue
cue-before
cue-after
play-during
azimuth
elevation
speech-rate
voice-family
pitch
pitch-range
stress
richness
speak-punctuation
speak-numeral
Available free from
ILoveJackDaniels.com
*
div
div *
div span
div, span
div > span
div + span
.class
div.class
#itemid
div#itemid
a[class]
a[class='x']
a[class~='x']
a[lang|='en']
Styles apply to:
All elements
<div>
Elements within <div>
<span> within <div>
<div> and <span>
<span> with <div> as
parent
<span> preceded by
<div> ... </div>
Elements of class "class"
<div> of class "class"
Element with id "itemid"
<div> with id "itemid"
<a> with class attribute
<a> when class is "x"
<a> when class is a list
of space-seperated values
and one of those is 'x'
<a> when lang begins
with "en"
all
braille
embossed
handheld
print
projection
screen
speech
tty
tv
:first-child
:first-line
:first-letter
:hover
:active
:focus
:link
:visited
:lang(lang)
Styles apply to:
First child of element
First line of element
First letter of element
Element when mouse over
Active element
Element with focus
Non-active, unvisited
links without mouse over.
Visited links
Element with text of
language "lang"
px
em
ex
%
in
cm
mm
pt
pc
#789abc
#acf
rgb(0,25,50)
0
Pixels
1em equal to font size of
parent (same as 100%)
Height of lower case "x"
Percentage
Inches
Centimeters
Millimeters
1pt = 1/72in
1pc = 12pt
RGB Hex Notation
Equates to "#aaccff"
Value (0 to 255) of each
of red, green, and blue.
May also be percentages
0 requires no unit
Width
MarginPadding
Visible Area
Height Border
azimuth
border-collapse
border-spacing
caption-side
color
cursor
direction
empty-cells
font
font-family
font-stretch
font-size
font-size-adjust
font-style
font-variant
font-weight
letter-spacing
line-height
list-style
list-style-image
list-style-position
list-style-type
orphans
page
page-break-inside
quotes
speak
speak-header
text-align
text-indent
text-transform
volume
white-space
widows
word-spacing
css
/* Comment */
@media type {
selector {
property: values;
}
} (Media type optional)

More Related Content

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 

Recently uploaded (20)

How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Css cheat sheet

  • 1. Boxes margin * margin-top margin-right margin-bottom margin-left padding * padding-top padding-right padding-bottom padding-left border * border-top * border-bottom * border-right * border-left * border-color * border-top-color border-right-color border-bottom-color border-left-color border-style * border-top-style border-right-style border-bottom-style border-left-style border-width * border-top-width border-right-width border-bottom-width border-left-width Positioning display position top right bottom left float clear z-index direction unicode-bidi overflow clip visibility Dimensions width min-width max-width height min-height max-height line-height vertical-align Miscellaneous content quotes counter-reset counter-increment marker-offset list-style * list-style-type list-style-image list-style-position Shorthand properties are marked with * Paging size marks page-break-before page-break-after page-break-inside page orphans widows Color / Background color * background background-color background-image background-repeat background-attachment background-position Fonts * font font-family font-style font-variant font-weight font-stretch font-size font-size-adjust Text text-indent text-align text-decoration text-shadow letter-spacing word-spacing text-transform white-space Tables caption-side table-layout border-collapse border-spacing empty-cells speak-header Interface cursor * outline outline-width outline-style outline-color Aural volume speak * pause pause-before pause-after * cue cue-before cue-after play-during azimuth elevation speech-rate voice-family pitch pitch-range stress richness speak-punctuation speak-numeral Available free from ILoveJackDaniels.com * div div * div span div, span div > span div + span .class div.class #itemid div#itemid a[class] a[class='x'] a[class~='x'] a[lang|='en'] Styles apply to: All elements <div> Elements within <div> <span> within <div> <div> and <span> <span> with <div> as parent <span> preceded by <div> ... </div> Elements of class "class" <div> of class "class" Element with id "itemid" <div> with id "itemid" <a> with class attribute <a> when class is "x" <a> when class is a list of space-seperated values and one of those is 'x' <a> when lang begins with "en" all braille embossed handheld print projection screen speech tty tv :first-child :first-line :first-letter :hover :active :focus :link :visited :lang(lang) Styles apply to: First child of element First line of element First letter of element Element when mouse over Active element Element with focus Non-active, unvisited links without mouse over. Visited links Element with text of language "lang" px em ex % in cm mm pt pc #789abc #acf rgb(0,25,50) 0 Pixels 1em equal to font size of parent (same as 100%) Height of lower case "x" Percentage Inches Centimeters Millimeters 1pt = 1/72in 1pc = 12pt RGB Hex Notation Equates to "#aaccff" Value (0 to 255) of each of red, green, and blue. May also be percentages 0 requires no unit Width MarginPadding Visible Area Height Border azimuth border-collapse border-spacing caption-side color cursor direction empty-cells font font-family font-stretch font-size font-size-adjust font-style font-variant font-weight letter-spacing line-height list-style list-style-image list-style-position list-style-type orphans page page-break-inside quotes speak speak-header text-align text-indent text-transform volume white-space widows word-spacing css /* Comment */ @media type { selector { property: values; } } (Media type optional)