<!DOCTYPE html>
<html>
<head>
<title>Basic Structure </title>
</head>
<body>
<div> #1 </div>
<div> #2 </div>
<div> #3 </div>
</body>
</html>
Apply the following bullet points to the HTML code below.
<!DOCTYPE html>
<html>
<head>
<title>Basic Structure </title>
</head>
<body>
<div> #1 </div>
<div> #2 </div>
<div> #3 </div>
</body>
</html>
Apply the following bullet points to the HTML code below.
The top = 10 pixels, The bottom = 5 pixels, The left = 20 pixels, The right = 1 pixel
How do you display padding for the box elements above?
Which CSS property do you need to align 2 html elements side-by-side?
When understanding Element Layers, which of the below items is correct?
Which property provides active whitespace outside of the box element?
aims at providing a more efficient way to lay out, align and distribute space among items in a container
flexbox layout is direction-agnostic as opposed to the regular layouts
flex container expands items to fill available free space, or shrinks them to prevent overflow
the main idea behind the flex layout is to give the container the ability to alter its items' width/height (and order) to best fill the available space
Flexbox layout is most appropriate to the components of an application, and small-scale layouts
<!DOCTYPE html>
<html>
<head>
<title>CSS Flexbox </title>
</head>
<body>
<aside> #1 </aside>
<aside> #2 </aside>
<aside> #3 </aside>
</body>
</html>
Apply the following bullet points to the HTML code below.
When implement CSS flexbox into your webpage, which option below is not necessary?
Step 1
Define a container element as a grid with display: grid
Step 2
Set the column and row sizes with grid-template-columns and grid-template-rows
Step 3
Place child elements into the grid with grid-column and grid-row
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 75px);
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 40px 2fr repeat(2, minmax(75px, 1fr));
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 40px 2fr repeat(2, minmax(75px, 1fr));
}
#item1{
grid-column-start: 2;
grid-column-end: 4;
grid-row-start: 3;
grid-row-end: -1;
background-color: red;
}
#item2{
grid-column: 3;
grid-row: 1;
background-color: red;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 40px 2fr repeat(2, minmax(75px, 1fr));
grid-template-areas: ". . . ."
"item1 . . ."
"item1 item2 item2 item2"
" . item2 item2 item2";
}
#item1{
grid-area: item1;
background-color: red;
}
#item2{
grid-area: item2;
background-color: red;
}
You are creating a grid layout. What does 1fr mean in the following code?
grid-template-columns: 150px 150px 1fr 1fr;
.grid {
display: grid;
grid-template-columns: 200px 700px 75px 1fr 1fr;
grid-template-rows: 40px repeat(2, minmax(75px, 1fr));
}
Using the code above, How many columns and rows are defined in the following code?
Using the code above, which CSS property provides space between the grid items?
Which of the following is not a way of placing items onto the grid?
[True or False] Both CSS Flexbox and CSS Grid can be used in constructing the layout of a webpage
What grid-template-areas
value makes the Article span 2 columns?
What does the CSS code grid-gap: 5px
do?