HTML & CSS Intermediate-2 (1)
HTML & CSS Intermediate-2 (1)
Resources.
1. Read through this HTML elements reference to get an overview of what
other HTML elements are available to you. No need to commit this to
memory because you’ll be learning the important parts as we go, but having
a glance now will help the content stick later.
2. Take a glance at a somewhat overwhelming looking CSS Cheat Sheet.
Again, we don’t need you to learn anything specific, or memorize anything
from this list, just use it to get a feel for what you still have left to learn!
3. For quick references use w3school for tags and css tricks.
Learning Outcomes
Lesson Overview
This section contains a general overview of topics that you will learn in this lesson.
● You will learn how to position elements using flexbox.
● You will learn about flex containers and flex items.
● You will learn how to create useful components and layouts that go beyond
just stacking and centering items.
Let’s Flex!
Flexbox is a way to arrange items into rows or columns. These items will flex (i.e.
grow or shrink) based on some simple rules that you can define. To get started,
let’s look at a simple demonstration. For all the exercises here, take your time to
inspect the code and really understand what’s going on. In fact, playing with the
code yourself will make it much easier to retain this information.
As you’ve seen, flexbox is not just a single CSS property but a whole toolbox of
properties that you can use to put things where you need them. Some of these
properties belong on the flex container, while some go on the flex items. This is a
simple yet important concept.
A flex container is any element that has display: flex on it. A flex item is any
element that lives directly inside of a flex container.
Somewhat confusingly, any element can be both a flex container and a flex item.
Said another way, you can also put display: flex on a flex item and then use
flexbox to arrange its children.
Alignment properties.
Align items
● align-items: flex-start
● align-items: flex-end
● align-items: center
● align-items: stretch
● align-items: baseline
●
Align content
● align-content: flex-start
● align-content: flex-end
● align-content: center
● align-content: space-between
● align-content: space-around
● align-content: stretch
Justify Con
/* Pack items from the start */
GRID LAYOUT.
.box {
display: grid;
width: 540px;
align-items: start;
justify-content: space-between;
Knowledge Check
This section contains questions for you to check your understanding of this lesson
on your own. If you’re having trouble answering a question, click it and review the
material it links to.
Resource.
Example GRID
Practice Project.
1. https://technical-documentation-page.freecodecamp.rocks/
2. https://personal-portfolio.freecodecamp.rocks/#contact. Flex/grid project.
3. Design a simple landing page with the following fields. First name, last
name, email, phone number, password, confirm password, country( county
should be a drop down with a list of countries), Date of birth( drop down to
select month, day and year), subjects ( a list where user can select multiple
subjects), submit button. NB. Be creative
Responsive design.
AIM: design content for the various screen types.
Screen Types: Mobile, tablet and, desktop/laptop
Screen breakpoints. Breakpoints are applied to screen width as this is what varies for the
various devices. Default break points are 768px for tablets and mobile, 1024px for
tablets and desktop.
Example.
}
}
}
}
1) Parallax Template**
2) Blog Template
3) Food blog template
4) Fashion blog template
5) CV template
6) Wedding invitation template
7) Nature portfolio template
2) Project view. For frontend projects/web pages. Add project images following this
format. 
example.
## App


3) Project description. Give a brief description of your project and the description of
the various sections of your project and instructions. Add images to the section if
necessary. Add a maximum of 2 images.
## About
## Play Game
Simply play the games by using your mouse pad. Click to jump and run as
far as you can go on the ground without falling off.
## Built With
- Javascript
- Bootstrap 5
- Html
- Webpack
- Phaser 3
### Prerequisites
Knowledge about JS:
## Clone project
- To get a local copy up and running follow these simple example steps.
- Clone this repository with
`https://github.com/nganifaith/JS_Capstone-RPG-Phaser.git` using your
terminal or command line.
- Change to the project directory by entering: cd JS_Capstone-RPG-Phaser
in the terminal.
## Start App
## Test
4) Link to your demo site / deployed project. Add a link to your deployed site following
this format. [name to be displayed in your file](link to site)
Example
## Live Site
[Link](https://unruffled-euler-e01838.netlify.app/)
5) Author(s). Details about the author(s) of the project. With links to their social
media handle. Social media: [your name](link to social media)
Example
## Author
👤 **John Doe**
- GitHub: [@johndoe](https://github.com/johndoe)
- Twitter: [@johndoe](https://twitter.com/johndoe)
- LinkedIn: [John Doe](https://www.linkedin.com/in/John doe/)
6) Optional items.
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Figma projects.
1- Project 1
2- Project 2
3- Project 3
4- Project 4
5- Project 5
6- Project 6
7- Project 7
8- Project 8
9- Project 9
10- Project 10
Follow us on TikTok