Table of Contents
CSS Basics
-
HTML File Setup
Jen instructs students how to set up a HTML file in VS Code for the second section of the bootcamp. -
Creating a CSS File
Jen instructs students how to open a CSS file in VS Code. -
Changing the Font with CSS
Jen demonstrates how to change fonts with fallback options in the file. Important concepts such as property, value, declaration, declaration block, and selector are introduced. -
CSS Backgrounds & Borders
Jen explains how to add background colors and then codes a snazzy new border into the web page. -
Styling a Blockquote
Jen uses a blockquote to demonstrate how to apply various styles to a tag. Responsive font sizing is also discussed.
CSS Classes & the Cascade
-
CSS Classes
Jen introduces CSS classes for targeting user-specified HTML elements. -
CSS Properties Exercise
Students are instructed to add 5-6 CSS styles of their choosing to their page as a CSS exercise. -
Sharing CSS with CodePen
Jen demonstrates how to utilize CodePen to share work and also view work by others, and then shows off a few student creations. -
The Cascade
Jen examines the cascade within CSS, which allows multiple CSS rules to be applied to an HTML element and determines which effect is visible. -
Link Pseudo-Classes
Jen demonstrates how to utilize pseudo-classes to add extra functionality to the CSS document and how to target links with classes. -
Pseudo-Classes Q&A
Jen answers questions regarding pseudo-classes. -
Descendant Selectors
Jen explains how descendant selectors coexist with parent selectors within the stylesheet. -
Style Placement
Jen discusses placing styles in stylesheets, between style tags, and inline. Demonstrating specificity in CSS, Jen then goes over "winning" rules in the HTML file, illustrating which cascading styles hold true. -
Grouped Selectors & IDs
After explaining how to group CSS declarations to reduce code repetition, Jen reviews ID selectors. ID selectors allow for pinpointing CSS rules to specific portions of a web page.
CSS Tools & Exercises
-
Color Tools
Jen reviews two tools for color choices for a web page including a website with color combinations, and a browser extension that has built-in tools such as a color picker, eye dropper, gradient generator, and other color tools. -
CSS Validator
Jen reviews how to check CSS code for errors using a validator. -
Posting Images to the Web
Jen discusses how to post images on the web when moving files from local computer to another hosted service like CodePen. -
CSS Exercises
Jen instructs students to apply styles to their previous HTML exercise, the book markup.
CSS Spacing
-
The Box Model
Jen gives an overview of the box model and explains how margin, border, and padding come together within it. -
Div Tags
Jen uses an example on CodePen to illustrate how the div tag works and gives a few of its use cases. -
Styling Div Tags
Jen applies CSS rules such as margin, padding, and borders to style div elements. -
Padding
Jen exemplifies padding usage by adding it to the right and left sides of a div element. -
Editing Default Margins
Jen demonstrates how to find and remove default margins from paragraphs and headings and add in new values. -
Block vs. Inline Elements
Jen contrasts block elements, that by default fill their entire container, and inline elements, that are only as large as their content. -
CSS Units
Jen discusses units of measurement in CSS, and explains how they relate to font and spacing. -
Width
Jen reviews the CSS width property, which is used to specify the width of an element. -
Height
Jen reviews the CSS height property, which is used to specify the height of an element. -
Don't Use Height
Due to the many screen sizes used to browse the web, Jen advises against using the height property, as it will potentially prevent content from being visible.
CSS Layout with Block & Inline Block
-
Vertical Navigation Bar Styling
Jen demonstrates how to code a navigation bar. -
Styling Navigation Items & Links
Demonstrating how to style a navigation bar, Jen adjusts the CSS rules on ul and li elements and adds hover state rules to links. -
Styling Inline vs. Block
Jen adjusts the presentation of the navigation menu items by changing the display property value from its default, inline, to block. -
Horizontal Navigation Bar Styling
Jen uses inline-block to convert the vertical navigation bar to a horizontal navigation bar.
CSS Layout with Floats
-
Floats & Padding
Jen discusses the purpose of floats and uses the float attribute to position an element to the left. Spacing is then added to the element float was applied to. -
Margin Shorthand
Jen introduces the margin shorthand TRBL, which assigns margins based on four space-separated values. -
Auto Margins
Jen explains how to center an article element on any device by setting the element's left and right margins to auto. -
Float Image Right & Clear
Jen uses the CSS property clear to ensure the floated image remains within the border of the article element. -
Floats Exercise
Jen introduces an exercise to add floats to a book page. -
Floats Solution
Jen shows off a few student creations from the previous exercise.
CSS Layout with Flexbox
-
Flexbox with Display Flex
Jen introduces flexbox, one method of laying out web pages, by setting an unordered list to display flex. -
Direction & Wrap with Flex Flow
Jen demonstrates usage of flex-flow, which combines rules for flex-direction and flex-wrap. -
Flex Justify Content
Jen discusses how to use the justify-content rule to designate the distribution of boxes within the flex container. -
Flex Item Basis
Jen covers flex-basis, which allows boxes within a flex container to take up a chosen percentage of the total space while remaining the same height as the other boxes.
CSS Layout Exercise
-
Code a Blog Page Exercise
Students are instructed to code a blog page using an image of the completed page as a reference. -
Footer CSS Solution
Jen codes the first part of the solution, uses inline block, top and bottom borders, and a bottom margin. -
Wrapper CSS Solution
Jen demonstrates how to create a wrapper for the blog using width and an auto margin. -
Header CSS Solution
Jen first identifies the flex container and flex items within the page and HTML code and then uses flexbox to create the solution header. -
Nav Bar CSS Solution
Jen uses inline block, list properties, and link properties to create the solution nav bar. -
Articles List CSS Solution
Jen uses float, clear, and spacing properties to create the layout for the articles list section of the solution. -
Solution Wrap-Up
Jen congratulates students for making progress on the project.