×
Learn CSS

Learn CSS

Learn HTML Easily with my note from Codeacademy Pro Premium. I paid for the course and learned it all so you don’t have to.

Explore all of my coding notes here

Table of Contents

0.1. CSS Anatomy

Anatomy Image

1.Inline Styles

Anatomy Image

2. The style Tag

Anatomy Image

3.The .css file

Anatomy Image

4.Linking the CSS File

Anatomy Image

5.Tag Name

Anatomy Image

6.1 Universal

Anatomy Image

6.Class Name

Anatomy Image

7.Multiple Classes

Anatomy Image

8.1 Attribute

Anatomy Image

8.2 Pseudo-class

Anatomy Image

8.ID Name

Anatomy Image

9.Classes and IDs

Anatomy Image

10.Specificity

Anatomy Image

11.Chaining Selectors

Anatomy Image

12.Nested Elements

Anatomy Image

13.Chaining and Specificity

Anatomy Image

14.Multiple Selectors

Anatomy Image

15.Review CSS Selectors

Anatomy Image

16.CSS Structure

Anatomy Image

17.Font Family

Anatomy Image

18.Font Size

Anatomy Image

19.Font Weight

Anatomy Image

20.Text Align

Anatomy Image

21.Color

Anatomy Image

22.Opacity

Anatomy Image

23.Background Image

Anatomy Image

24.Important

Anatomy Image

25.Review Visual Rules

Anatomy Image

Project 1 – Healthy Recipes

Anatomy Image

Project 2 – Olivia Woodruff Portfolio

Anatomy Image

28.The Box Model

Anatomy Image

29.Height and Width

Anatomy Image

30.Borders

Anatomy Image

31.Border Radius

Anatomy Image

32.Padding I

Anatomy Image

33.Padding II

Anatomy Image

34.Margins I

Anatomy Image

35.Margins II

Anatomy Image

36.Margin Auto

Anatomy Image

37.Margin Collapse

Anatomy Image

38.Minimum and Maximum Height and Width

Anatomy Image

39.Overflow

Anatomy Image

40.Resetting Defaults

Anatomy Image

41.Visibility – Hidden and None

Anatomy Image

42. Review – The Box Model

Anatomy Image

43.Why Change the Box Model

Anatomy Image

44.Box Model Content-Box

Anatomy Image

45.Box Model Border-Box

Anatomy Image

46.The New Box Model

Anatomy Image

47.Review Changing the Box Model

Anatomy Image

48. Project The Box Model – Davie’s Burgers

Anatomy Image

49.The Box Model in DevTools

Anatomy Image

50.The Box Model in Chrome DevTools

Anatomy Image

51.Flow of HTML

Anatomy Image

52. Position

Anatomy Image

53. Position – Relative

Anatomy Image

54. Position – Absolute

Anatomy Image

55. Position – Fixed

Anatomy Image

56. Z-Index

Anatomy Image

57.Inline Display

Anatomy Image

58.Block Display

Anatomy Image

59.Inline-Block Display

Anatomy Image

60. Float

Anatomy Image

61. Clear

Anatomy Image

62. Review Layout

Anatomy Image

63. Project – Broadway

Anatomy Image

64.Introduction to Color

Anatomy Image

65. Color – Foreground vs Background

Anatomy Image

66.Hexadecimal

Anatomy Image

67.RGB Colors

Anatomy Image

68.Hex and RGB

Anatomy Image

69.Hue, Saturation, and Lightness

Anatomy Image

70.Opacity and Alpha

Anatomy Image

71.Color Review

Anatomy Image

72. Project – Paint Store

Anatomy Image

73.Font Family

Anatomy Image

74.Font Weight

Anatomy Image

75. Font Weight II

Anatomy Image

76. Font Style

Anatomy Image

77.Word Spacing

Anatomy Image

78.Letter Spacing

Anatomy Image

79.Text Transformation – uppercase

Anatomy Image

80.Text Alignment

Anatomy Image

81.Line Height Anatomy

Anatomy Image

82.Line Height

Anatomy Image

83. Serif and Sans Serif

Anatomy Image

84.Fallback Fonts

Anatomy Image

85.Linking Fonts I

Anatomy Image

86.Linking Fonts II

Anatomy Image

87. Font-Face I & II

Anatomy Image

88. Font-Face III

Anatomy Image

89.Review Typography

Anatomy Image

90. Project – Typography

Anatomy Image

91. What is Flexbox

Anatomy Image

92. Display – flex

Anatomy Image

93. Inline-flex

Anatomy Image

94.justify-content

Anatomy Image

95.align-items

Anatomy Image

96. Flex-grow

Anatomy Image

97.flex-shrink

Anatomy Image

98.flex-basis

Anatomy Image

99. Flex

Anatomy Image

100.flex-wrap

Anatomy Image

101.Align-content

Anatomy Image

102.flex-direction

Anatomy Image

103. flex-flow

Anatomy Image

104.Nested Flexboxes

Anatomy Image

105.Review Flexbox

Anatomy Image

106.Project Flexbox To-Do App

Anatomy Image

107. Introduction to Grid

Anatomy Image

108. Creating a Grid

Anatomy Image

109.Creating Columns

Anatomy Image

110. Creating Rows

Anatomy Image

111.Grid Template

Anatomy Image

112. Fraction

Anatomy Image

113. Repeat

Anatomy Image

114. Minmax

Anatomy Image

115. Grid gap

Anatomy Image

116.Grid Items

Anatomy Image

117.Multiple Row Items

Anatomy Image

118. Grid Row

Anatomy Image

119.Grid Column

Anatomy Image

120. Grid Area

Anatomy Image

121. Project CSS Grid – PupSpa

Anatomy Image

121. Review CSS Grid Essentials

Anatomy Image

122.Grid Template Areas

Anatomy Image

123.Overlapping Elements

Anatomy Image

124.Justify Items

Anatomy Image

125.Justify Content

Anatomy Image

126.Align Items

Anatomy Image

127.Align Content

Anatomy Image

128.Justify Self and Align Self

Anatomy Image

129.Implicit vs. Explicit Grid

Anatomy Image

130.Grid Auto Rows and Grid Auto Columns

Anatomy Image

131.Grid Auto Flow

Anatomy Image

132. Advanced CSS Grid

Anatomy Image

133. Project – CSS Grid Task Board

Anatomy Image

134. Display Inline-grid

Anatomy Image

What is DOM

Anatomy Image

CSS Materials & Links

Border Style
https://developer.mozilla.org/en-US/docs/Web/CSS/border-style#values

See also  Learn HTML

Color
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value

Project – Tea Cozy

Designer Guideline

Anatomy Image

Developer Guideline

Anatomy Image

Index.html

<!DOCTYPE html>
<html>

<head>
  <title>The Tea Cozy</title>
  <link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>

  <!-- Header -->

  <header class="flex-container">
    <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-tea-cozy-logo.png" />
    <nav>
      <span><a href="#mission">Mission</a></span>
      <span><a href="#store">Featured Tea</a></span>
      <span><a href="#locations">Locations</a></span>
    </nav>
  </header>

  <!-- Main Content Container -->

  <div class="main">

    <!-- Mission Section -->

    <div id="mission" class="flex-container">
      <div class="content">
        <h2>Our Mission</h2>
        <h4>Handpicked, Artisanally Curated, Free Range, Sustainable, Small Batch, Fair Trade, Organic Tea</h4>
      </div>
    </div>

    <!-- Store Section -->

    <div id="store">
      <h2>Tea of the Month</h2>
      <h4>What's Steeping at The Tea Cozy?</h4>
      <div class="flex-container items">
        <div class="item">
          <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-berryblitz.jpg" />
          <span>Fall Berry Blitz Tea</span>
        </div>
        <div class="item">
          <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-spiced-rum.jpg" />
          <span>Spiced Rum Tea</span>
        </div>
        <div class="item">
          <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-donut.jpg" />
          <span>Seasonal Donuts</span>
        </div>
        <div class="item">
          <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-myrtle-ave.jpg" />
          <span>Myrtle Ave Tea</span>
        </div>
        <div class="item">
          <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-bedford-bizarre.jpg" />
          <span>Bedford Bizarre Tea</span>
        </div>
      </div>
    </div>

    <!-- Locations Section -->

    <div id="locations">
      <h2>Locations</h2>
      <div class="flex-container locations">
        <div class="location">
          <h3>Downtown</h3>
          <p>384 West 4th St</p>
          <p>Suite 108</p>
          <p>Portland, Maine</p>
        </div>
        <div class="location">
          <h3>East Bayside</h3>
          <p>3433 Phisherman's Avenue</p>
          <p>(Northwest Corner)</p>
          <p>Portland, Maine</p>
        </div>
        <div class="location">
          <h3>Oakdale</h3>
          <p>515 Crescent Avenue</p>
          <p>Second Floor</p>
          <p>Portland, Maine</p>
        </div>
      </div>
    </div>
  </div>

    <!-- Contact Section -->
    <div id="contact">
      <h2>The Tea Cozy</h2>
      <h5>contact@theteacozy.com</h5>
      <h5>917-555-8904</h5>
    </div>

    <!-- Footer Section -->
    <footer>
      <h5>copyright The Tea Cozy 2017</h5>
    </footer>
  </body>
</html>

style.css

/* Universal Styles */

body {
margin: 0;
font-family: “Helvetica”, sans-serif;
color: seashell;
background-color: black;
font-size: 22px;
text-align: center;
}

a {
color: seashell;
}

h2,
h3,
h4 {
margin: 0;
padding: 10px;
}

.flex-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
}

/* Header Section */

header {
width: 100%;
position: fixed;
z-index: 1;
height: 69px;
background-color: black;
border-bottom: 1px solid seashell;
align-items: center;
}

header img {
height: 50px;
padding-left: 10px;
}

nav {
text-align: right;
flex-grow: 1;
}

nav span {
display: inline-block;
padding: 20px 10px;
}

/* Main Section */

.main {
padding-top: 69px;
opacity: 0.9;
width: 1200px;
margin: auto;
}

/* Mission Section */

#mission {
height: 700px;
background-image: url(“https://content.codecademy.com/courses/freelance-1/unit-4/img-mission-background.jpg”);
padding-top: 70px;
}

#mission .content {
margin: auto;
background-color: black;
width: 100%;
}

/* Store Section */

#store {
height: 700px;
width: 1000px;
margin: auto;
padding-top: 70px;
}

.item {
padding: 5px;
}

.item img {
height: 200px;
margin: 10px;
display: block;
}

.item span {
display: block;
padding: 5px;
font-weight: bold;
text-align: center;
}

/* Location Section */

.flex-container.locations {
padding-top: 5px;
}

#locations {
background-image: url(“https://content.codecademy.com/courses/freelance-1/unit-4/img-locations-background.jpg”);
height: 500px;
padding-top: 70px;
}

#locations .flex-container {
margin: auto;
width: 1100px;
}

.location {
opacity: 1.0;
padding: 10px;
margin: 5px 20px;
background-color: black;
flex-basis: 280px;
display: flex;
flex-direction: column;
justify-content: center;
}

/* Contact Section */

#contact {
height: 200px;
}

/* Footer Section */

footer {
text-align: left;
padding-left: 20px;
}

Post Comment