Skip to content

johnnytortorici/m1-3-htmlcss--css-page-layout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1.3 - CSS: Page Layout - Workshop

Each exercise folder contains a README with additional documentation.

Exercise 1 - Use Flexbox

Create an index.html file and a style.css file that reproduces the following:

exercise-1 goal

Exercise 2

Create an index.html file and a style.css file that reproduces the following:

exercise-2 goal

Exercise 3

Create an index.html file and a style.css file that reproduces the following:

exercise-3 goal

This is a full screen background image with text in the center

Exercise 4

Create an index.html file and a style.css file that reproduces the following:

exercise-4 goal

Exercise 5

Create an index.html file and a style.css file that reproduces the following:

exercise-5 goal

Exercise 6

Update the index.html file and style.css file to reproduces the following:

exercise-6 goal

Exercise 7

Update only the style.css file to reproduces the following:

exercise-7 goal


🟡 - Minimally complete workshop (75%) - 🟡

Exercise 8

Update only the CSS file to reproduce the following:

exercise-8 goal

Exercise 9

Update only the style.css file to reproduces the following:

exercise-9 goal

Exercise 10

Create an index.html file and a style.css file that reproduces the following:

exercise-10 goal


🟢 - Complete workshop (100%) - 🟢

Stretch Goals

The exercises in the following links will help you get more practice with CSS selectors, CSS Flexbox, and optionally Grid.

Exercise 11

Go back to exercise 10 and make the button do a 360deg rotation when it bounces

exercise-10 bonus goal

  • Use the syntax transform:scale() rotate() in your keyframe

Exercise 12 - NO flexbox!

The very first exercise had us build this:

exercise-1 goal

For fun, try and build this without using flexbox. No display: flex allowed.

You will need to use calc() and vh units for this.

Example use: min-height: calc(10vh + 200px);

Exercise 13

Create an HTML file and a CSS file that outputs the following

exercise-13 goal

<div class="alert alert-primary">
  <p>A simple primary alert.</p>
</div>

<div class="alert alert-secondary">
  <p>A simple secondary alert.</p>
</div>

...

Exercise 14

Create an HTML file and a CSS file that outputs the following

exercise-14 goal

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>

...

Note: The type="button" attribute isn't important for this exercise

Exercise 15

Create an HTML file and a CSS file that outputs the following

Build upon what you did in exercise 14.

exercise-15 goal

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>

...

Note: The type="button" attribute isn't important for this exercise

Exercise 16

Create an HTML file and a CSS file that outputs the following

Build upon what you did in previous exercise 14 and 15.

Part 1

exercise-16 goal 1

Part 2

exercise-16 goal 2

Part 3

exercise-16 goal 3

Notes

  • You do not need to re-create the code snippets. Your goal is to create the buttons. The code snippets are shown in the screenshots as an example of what the HTML properties should be.
  • The type="button" attribute isn't important for this exercise

Exercise 17

Create an HTML file and a CSS file that outputs the following

exercise-17 goal

Exercise 18

Create an HTML file and a CSS file that outputs the following

Build upon what you did in exercise 17.

exercise-18 goal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.0%
  • CSS 41.0%