Search Header Logo

CSS Layout

Authored by syam gunawan

Computers

University

Used 28+ times

CSS Layout
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

When you use class selector

What should present infront of classname

#

&

@

.

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which model includes margin, border, padding, and content?

CSS Box model

CSS3 Flexbox Box model

CSS3 Grid Layout model

CSS Grid Template Layout Module

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which model defines structures similar to tables using 2 dimensions?

CSS Box model

CSS3 Flexbox Box model

CSS3 Grid Layout model

CSS float

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

You are creating a grid layout. What does 1fr mean in the following code?

grid-template-columns: 150px 150px 1fr 1fr;

The first two columns will be two fraction units of the stated width.

The third and fourth columns is 1 fraction unit of the remaining space in the grid.

The second column will be double the stated width.

The second column will be half of the remaining space in the grid.

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How many columns and rows are defined in the following code?

section {

display: grid;

grid-template-columns: 100px 1fr 1fr 250px;

grid-rows: 50px 1fr 1fr ;

}


section header {

grid-column: 1 / 4;

grid-row: 1;

}


section nav {

grid-column: 1;

grid-row: 2 / 3;

}


section article {

grid-column: 2;

grid-row: 2;

}


section aside {

grid-column: 3;

grid-row: 2;

}


section footer {

grid-column: 1 / 4;

grid-row: 3;

}

1 rows and 2 columns

2 rows and 3 columns

3 rows and 2 columns

3 rows and 4 columns

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

How to define the properties for the wrapper element to position the box like in the picture?

padding-left: value; padding-top: value;

padding-right: value; padding-top: value;

margin-left: value; margin-top: value;

margin-right: value; padding-top: value;

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

How to define the property for the box element with shorthand?

margin: 0 value value 0;

margin: value value 0 0;

margin: 0 value 0 value;

margin: value 0 0 value;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?