0% found this document useful (0 votes)
13 views

CSS Summary Cards

The document contains various CSS styling rules and properties for web development, including font styles, text alignment, padding, margins, and layout techniques such as flexbox and grid. It also includes examples of color codes and how to apply them using CSS variables. Overall, it serves as a reference for creating visually appealing web pages.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

CSS Summary Cards

The document contains various CSS styling rules and properties for web development, including font styles, text alignment, padding, margins, and layout techniques such as flexbox and grid. It also includes examples of color codes and how to apply them using CSS variables. Overall, it serves as a reference for creating visually appealing web pages.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

futurefullstack.

com

<h1>

<li>

<img> <li>

<li>

index.html

app.css
futurefullstack.com

font-weight: 700;
text-decoration: underline blue dotted;
100 200 300 400 500 600 700 800 900
none line-through underline overline
named rgb hex
double solid dotted dashed wavy

font-style: italic;
normal italic oblique oblique 10deg

text-transform: uppercase;
font-style: disc;
none uppercase lowercase capitalize
none disc circle square decimal
futurefullstack.com

font-align: center; font-size: 16px;


left right center justify pixels rems

line-height: 1.5;
62px h1
unitless pixels percentages ems
48px h2
40px h3
32px h4

line-height: 8px; 24px h5

pixels percentages ems 20px p

16px a
futurefullstack.com

Text Text Text Text Text

Arctic Moonlight Iris Dawn Pebble


#d0ebff #e5dbff #ffe8cc #f1f3f5

font-family: ‘Tahoma’, sans-serif; Sky Blue Lavender Pumpkin Slate


#339af0 #9775fa #ff922b #495057

Deep Sea Velvet Night Lava Graphite


#1c7ed6 #7048e8 #f76707 #212529

color: #9874F9;
rgb hex rgba hsl
futurefullstack.com

app.css app2.css
futurefullstack.com

a : hover

Class Pseudo-
Selector ID class Type

#heading

.textbox .large

div div .large

div div h1

div p div > p h1 + p h1 ~ p


futurefullstack.com

text-align: center; <div>

<h1> Street art


<p> Bespoke sustainable
<a> meditation

h2 :: first-letter
futurefullstack.com

padding-top: 5px; margin-top: 5px;


padding-right: 10px; margin-right: 10px;
padding-bottom: 5px; margin-bottom: 5px;
padding-left: 10px; margin-left: 10px;

padding: 20px; margin: 20px;


padding: 10px 20px; margin: 10px 20px;
padding: 10px 20px 5px; margin: 10px 20px 5px;
padding: 10px 20px 5px 15px; margin: 10px 20px 5px 15px;
border: 5px solid red;

border-top: 6px solid purple;


width: 500px; height: 100px; border-width: 5px; border-right: 2px dashed blue; border-radius: 12px;
background-color: #339af0; border-style: solid; border-bottom: 1px dotted red;
border-color: red; border-left: 10px solid green;
futurefullstack.com

width: 500px;

box-sizing: content-box;

box-sizing: border-box;
futurefullstack.com

width: 500px; max-width: 500px;

height: 500px; max-height: 500px;


futurefullstack.com
futurefullstack.com

--primary: #339af0;

background-color: var(--primary);
calc((100%/3) - 50px))
futurefullstack.com

display: flex;
flex-direction: row; flex-direction: row-reverse;

flex-direction: column; flex-direction: column-reverse;


futurefullstack.com

justify-content: flex-start; justify-content: space-between; align-items: stretch;

align-items: center;

justify-content: flex-end; justify-content: space-around; align-items: flex-start;

align-items: baseline;

A B C D

justify-content: center; justify-content: space-evenly; align-items: flex-end;


futurefullstack.com

gap: 20px;

margin: 0 auto; justify-content: center;

margin: 200px auto; margin: 200px 0;

align-items: center;
futurefullstack.com

align-self: auto; align-self: flex-end;

flex-grow: 1; flex-grow: 0;

flex-grow: 2; flex-grow: 0;
align-self: stretch; align-self: center;

align-self: flex-start; align-self: baseline;

flex-shrink: 2; flex-shrink: 1;

flex-shrink: 1; order: 0;
flex-shrink: 6;
futurefullstack.com

align-content: stretch; align-content: center;


flex-wrap: wrap;

no wrap wrap wrap-reverse

align-content: flex-start; align-content: space-between;

align-content: flex-end; align-content: space-around;


futurefullstack.com

grid-template-columns: 1fr 2fr;


grid-template-rows: repeat(2, 200px);

row-gap: 40px
gap: 20px
column-gap: 20px
futurefullstack.com

justify-items: start; justify-items: center; align-items: start; align-items: center;

justify-items: end; justify-items: stretch; align-items: end; align-items: stretch;


futurefullstack.com

justify-content: start; justify-content: space-between; align-content: start; align-content: space-between;

justify-content: end; justify-content: space-around; align-content: end; align-content: space-around;

justify-content: center; justify-content: space-evenly; align-content: center; align-content: space-evenly;


futurefullstack.com

justify-items: center;
align-items: center;

grid-row: 1 / 2;
justify-self: end;
grid-column: 2 / 3;
align-self: start;

grid-column: 2 / 4; grid-row: 1 / span 2;


futurefullstack.com
futurefullstack.com

left: 100px; left: 100px; right: 50px; top: 0;


top: 50px; top: 200px; bottom: 50px;
futurefullstack.com

transform: scale(2, 0.5); transform: skew(20deg, 50deg);

z-index: 0;

transform: rotate(45deg); translate: translate(50%, -200px);

z-index: 1;
z-index: 99;

z-index: 2;

position: absolute;

left: 50%;
top: 50%;

transform: translate(-50%, -50%);


futurefullstack.com

box-shadow: 10px -20px 5px 30px #6bb55c;


transition: border 0.5s ease-in;

ease linear ease-in


ease-out ease-in-out

You might also like