What Is Flexbox?: How Does It Work?
What Is Flexbox?: How Does It Work?
Luckily, the flexbox has came to solve this problem. That’s what we are going to learn during this
skill. Here is an overview:
What is flexbox?
Flexbox has a technical definition. For the sake of this course, I’ll skip the technicalities.
You may see flexbox as the layout ninja for CSS.
When you need to deal with the layout in your styles, the CSS Flexbox model is likely to be your
best bet.
Static means elements are static to the flow . If one moves, another will move as well.
CSS grid system
Every website or application layout you make (or have seen) is essentially boxes placed within
certain defined boundaries.
In very simple terms, a grid is just horizontal and vertical lines that define the placement of other
design elements.
In the context of the CSS Grid layout, a grid container is a parent that contains all the items in the
grid. The Grid container defines the initial placement of the grid lines, both vertical and horizontal.
Column and Row
So we have to define columns and rows,because a grid without columns and rows is kind of
pointless.
To create columns and rows within a grid container, you use the two new CSS properties: grid-
template-columns and grid-template-rows.
.grid-container {
display: grid;
}
Properties for the grid items
We have :
grid-column-start/grid-row-start is the line where the item begins
grid-column-end/grid-row-end is the line where the item ends.
Responsive Web design has become an essential tool for anyone with a digital presence. With
the growth of smartphones, tablets and other mobile computing devices, more people are using
smaller-screens to view web pages.
The most popular form in which media queries are used is something called the @media rule.
Font-Awesome
Well, we will be sharing with you some helpful and useful resources to make your web page look
“Awesome”.
For that, lett’s meet Font-Awesome ! It is the most popular way to add font icons to your website.
Font Awesome icons are created using scalable vectors, so you can use high quality icons that
work well on any screen size.
How to use it?
First, we add the following line inside the < head > section of your HTML page:
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/4.7.0/css/font-awesome.min.css">
Then, to display cool icons we simply use the documentation you will find
in https://fontawesome.com/, you will find everything you will need , Here’s an example:
Bootstrap classes
As we already mentioned, Bootstrap is a massive collection of reusable and versatile pieces of
code which are written in CSS, HTML and JavaScript,With that,developers have a range of
components at their disposal, which can be used on to the website. These include, but are not
limited to:
Drop-down menus
Navigation bars
Progress bars
Thumbnail images
However, you can’t help but notice that something is missing. The web page is lacking certain
functions like a search box or options to comment. Right now the body, with all its accessories,
looks more like a mannequin in a store window than a real human being. That’s where JavaScript
comes in.
OBJECTIVES
In this checkpoint we are going to reproduce the docplanner website using html and
css, here is a link to the site.
INSTRUCTIONS
https://www.themelocation.com/best-html5-practices/