CSS Basics Flashcards

1
Q

What describes how input elements should look?

A

Ruleset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which is the element or elements that will be targeted by the declarations that follow?

A

Selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the declaration block follow?

A

The Selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In CSS, what is a set of declarations contained in curly brackets {}

A

A Declaration Block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What consists of a property and the value it is to be set to?

A CSS rule-set consists of a selector and ________

A

A Declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Write CSS code to Target a set of elements named “sidebar” to have a width of 100 pixels.

A

.sidebar { width: 100px; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In CSS, the property name is followed by a ?

A

Colon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In CSS, the value (after the property) is followed by a?

A

A semicolon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In CSS, what is the method of adding coments to your code not to be shown or the temporarily disable “comment out” a block of code?

A

/* text here or code here */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When you’re writing a ruleset, try to keep your _______ as non-specific as possible.

A

Selectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When you’re writing a ruleset, try to keep your selectors as 1)specific or 2)non-specific as possible.

A

2) Non specific.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In CSS what is used to specify (to target) a special state of the element?

A

Pseudo-class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In CSS what is used to style (target) specified parts of an element?

A

Pseudo-element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In CSS write a short ruleset to target the first letter of every paragraph. Also define this situation as either 1)pseudo-class or 2)pseudo-element

A

2) pseudo-element
p: :first-letter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In CSS write a short ruleset to generate hover behaviour over a container box named “foo”. Also define this situation as either 1)pseudo-class or 2)pseudo-element

A

1) Pseudo-Class
div. foo:hover {…}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To utilize CSS, we link to one or more _______________ that contain style rules which are applied to the linking HTML page.

A

External Stylesheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Write HTML code including the opening and closing header section to link a stylesheet to the HTML page. (ignore answer ,,,)

A

,,<,,head,,>

,,<,,link rel=”stylesheet” type,,=”text/css” href=”./css/main.css”,,,>

,,<,,link rel=”stylesheet” type,,=”text/css” href=”./css/nav-bar.css”>

,,<,,/,,head,,>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Is “inline styling” to be avoided?

A

Yes. Engineers refer to this as maintaining the separation of concerns between HTML and CSS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

write HTML code (inline styling) to set the paragraph style to have a color of blue and a font of Arial. (in answer ignore ,,,)

A

,,<,,p style=”color: blue; font-family: Arial”,,>text text,,<,,/p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What encodes information about how an element should look directly into the HTML (bypassing CSS)?

A

Inline Styles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Inline styles encode information about how an element should look directly into the HTML. Are you able to reuse these styles on other elements?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Are classes possible with inline styles?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is DOM ?

A

Document Object Model

The Document Object Model is a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document. The DOM represents a document with a logical tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

If you include <style> and <link></link> elements in your document, they will be applied to the DOM \_\_\_\_\_\_\_\_\_ they are included in the document.</p>
</style>

A

In the order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

If you include <style> and <link></link> elements in your document, they will be applied to the DOM in the order they are included in the document. Make sure you include them in the correct order, to avoid unexpected \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_.</p>
</style>

A

Cascade Issues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

You just learned that a given HTML element’s appearance can be determined by numerous CSS rulesets…in real web pages — especially for bigger sites with more contributors — you often end up with style rules from multiple places targeting a specific element. If there are conflicts for a given property, the browser will choose the rule with the ________

A

Higher Specificity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

In the CSS coding below which has more specificity:

1) div.foo p {color: green;}
2) .foo p {color: red;}

A

1) is more specific and will be chosen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Write CSS code to target all paragraphs in an element with the “foo” class to be red.

A

.foo p { color: red; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

CSS allows you to supply the keyword _______ in order to make a rule that might otherwise be lower in the cascade to override others.

A

!important

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Write CSS using the word !important to apply the color red to the paragraph.

A

p { color: red !important; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

In CSS should the !important comand be avoided?

A

Yes, there are rare occasions when it’s the right move.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

The Box Model: Name the total space taken up by an element using 5 constituent parts

A

Width, Height, Padding, Border, and Margin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

What is the manner of calculating the total width of an element?

A

Add Width, plus 2x padding, plus 2x border, plus 2x margin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

To have the box model respect the widths we explicitly set, we can use the _______ CSS property.

A

The “box-sizing” CSS property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Write the ruleset in CSS to make border-box the default for all elements

A

* { box-sizing: border box; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

To have the box model respect the widths we explicitly set, we can use the box-sizing CSS property. We set its value to ________

A

border-box.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

write the ruleset in your CSS to make border-box the default for all elements.

A

* {

box-sizing: border-box;

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What are the two common solutions to guarantee cross-browser consistency for default styles?

A

1) Meyer reset
2) Normalize.css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is a CSS library that normalizes a subset of browser elements to be consistent between browsers?

A

normalize.css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

To use any font beyond web safe fonts, you have to use ?

A

Webfonts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Fonts that you load in the browser using HTML and then can reference in your CSS. Google provides a set for free.

A

Webfonts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

within ,<,,head> section is line

,<,,link href=”https://fonts.googleapis.com/css?family=Anton&display=swap”

for the following ,,<,,div class,,=,,”a”,,>,,

add in CSS instructions to assign to this class the font above with “sans-serif”, along with size of 30px and bold and color green.

A

div.a {

font-family: ‘Anton’, sans-serif;

font-size: 30px;

font-weight: bold;

color: green;

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

in CSS target h1 and give font of 40px

A

h1 {

font-size: 40px;

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

In CSS target all elements that have BOTH the .foo and .bar classes:

A

.foo.bar { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

In CSS target only paragraphs that have BOTH .foo and .bar

A

p.foo.bar { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

In CSS, if an element is part of the target, put it ______.

A

First. Then chain together the classes you want to target.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

In CSS, target elements that have either .foo or .bar, or BOTH .bizz and .bang.

A

.foo, .bar, .bizz.bang { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

In CSS, target all paragraphs that appear with ASIDE elements

A

aside p { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

In CSS, what targets children of the parent element whether they’re immediate children or further down the hierarchy?

A

Descendant selectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

In CSS, target only elements that are the DIRECT children of an element. Using p as the element.

A

aside > p { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

The ::before and ::after are what?

A

Pseudo-elements that allow you to render content just before or after your element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

In CSS, write code to add an quotation mark before the blockquote.

A

blockquote: :before {
content: open-quote;

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

In CSS, write an ANCHOR PSEUDO-CLASS for an unvisited link

A

a: link { }

54
Q

In CSS, write an ANCHOR PSEUDO-CLASS for a visited link.

A

a: visited { }

55
Q

In CSS, write an ANCHOR PSEUDO-CLASS for a ‘mouse over link’

A

a:hover { }

56
Q

In CSS, write an ANCHOR PSEUDO-CLASS for a selected link [clicked but not released on the link]

A

a: active { }

57
Q

in CSS, what does the following represent:

element[attribute=value]

A

Targets elements by attribute value and this is an EXACT match.

58
Q

In CSS, what does the following represent:

element[attribute*=value]

A

Targets elements by attribute value and this is an match ANYWHERE in the value.

59
Q

In CSS, what does the following represent:

element[attribute^=value]

A

Targets elements by attribute value and this is a match at the BEGINNING of the value.

60
Q

In CSS, what does the following represent?

element[attribute$=value]

A

Targets elements by attribute value and this is a match at the end of the value.

61
Q

— you often end up with style rules from multiple places targeting a specific element. If there are conflicts for a given property, the browser will choose the rule with __________.

A

higher specificity.

62
Q

To determine which property-value pairs to apply to a particular element, the browser: in order

) Takes all rulesets that have same origin and importance and sorts them by selector specificity

) Takes all the relevant rulesets and sorts them according to their origin (for instance, inline styles vs. external stylesheets — inline styles win over external) and importance (more on importance in a moment)

) Determines which rules apply to the element

) If there are still conflicting values for rulesets with the same importance, origin, and specificity, applies the ruleset that was declared last.

A

3214

63
Q

To determine which property-value pairs to apply to a particular element, the browser: IN ORDER

) Takes all the relevant rulesets and sorts them according to their origin (for instance, inline styles vs. external stylesheets — inline styles win over external) and importance (more on importance in a moment)

) Determines which rules apply to the element

) Takes all rulesets that have same origin and importance and sorts them by selector specificity

) If there are still conflicting values for rulesets with the same importance, origin, and specificity, applies the ruleset that was declared last.

A

2134

64
Q

To determine which property-value pairs to apply to a particular element, the browser: IN ORDER

) If there are still conflicting values for rulesets with the same importance, origin, and specificity, applies the ruleset that was declared last.

) Takes all the relevant rulesets and sorts them according to their origin (for instance, inline styles vs. external stylesheets — inline styles win over external) and importance (more on importance in a moment)

) Takes all rulesets that have same origin and importance and sorts them by selector specificity

) Determines which rules apply to the element

A

4231

65
Q

To determine which property-value pairs to apply to a particular element, the browser: IN ORDER

) If there are still conflicting values for rulesets with the same importance, origin, and specificity, applies the ruleset that was declared last.

) Takes all rulesets that have same origin and importance and sorts them by selector specificity

) Takes all the relevant rulesets and sorts them according to their origin (for instance, inline styles vs. external stylesheets — inline styles win over external) and importance (more on importance in a moment)

) Determines which rules apply to the element

A

4321

66
Q

To determine which property-value pairs to apply to a particular element, the browser:

) Determines which rules apply to the element

) If there are still conflicting values for rulesets with the same importance, origin, and specificity, applies the ruleset that was declared last.

) Takes all the relevant rulesets and sorts them according to their origin (for instance, inline styles vs. external stylesheets — inline styles win over external) and importance (more on importance in a moment)

) Takes all rulesets that have same origin and importance and sorts them by selector specificity

A

1423

67
Q

CSS allows you to supply the keyword _________ in order to make a rule that might otherwise be lower in the cascade override others. Try to avoid using it only rare occasions; it’s a sign that there are problems with the application of your style rules.

A

!important

! important

68
Q

To calculate the measurements for an element, we add width, plus 2x _____, plus 2x ______, plus 2x ________.

A

padding

border

margin

Example …would have a total width of 200 (width) + 20 (padding left and padding right, each 10) + 2 (left and right border) + 60 (left and right margin) = 282px.

69
Q

use a CSS reset, the most popular of which is the _________. By linking to this file in your HTML (above your other style sheets, so it sets a base that they add to), you can guarantee cross-browser consistency for default styles.

A

Meyer reset

https://meyerweb.com/eric/tools/css/reset/reset.css

70
Q

Write CSS code that target only paragraphs that have both .foo and .bar

A

p.foo.bar {

}

71
Q

The HTML

> Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotationIn CSS write code to add opening and closing quotations just before and after the blockquote element.

A

blockquote: :before {
content: open-quote;

}

blockquote: :after {
content: close-quote;

}

72
Q

Web accessibility (commonly shortened to _______) is the practice of making web pages accessible to both able-bodied and disabled users. That can mean taking into account the needs of users with movement impairments (such as paralysis or cerebral palsy), users with cognitive impairments like dyslexia, or visually impaired users (like nearsighted, blind, or colorblind people), and also the assistive technologies (often shortened as “ATs”) they use. This reading will focus on visually impaired users because they are the ones most impacted by good or bad HTML.

A

a11y

73
Q

________ & ACRONYM___is the process of increasing the quality and quantity of website traffic by increasing the visibility of a website or a web page to users of a web search engine.

A

Search engine optimization (SEO)

74
Q

If you mainly use a mouse and monitor to navigate the contents of a web page, you’re a “______” (and most likely not visually impaired). On the other hand, if you mainly use a keyboard (along with keyboard shortcuts for moving between links, tabs, etc), you’re a “______”.

A

mouse user

keyboard user

75
Q

Write the HTML code to set the language of the page to English.

A
76
Q

What are “a, strong, em, or span” examples of?

A

Inline Elements.

77
Q

You can’t explicitly set the width, height, margin, or padding of an _______ ; its dimensions are determined by how much space its contents require. However, the text in an ________ can be set to a large or smaller font-size or different color, and it will be different than the text around it.

A

inline element

78
Q

The ______ is displayed inline with the rest of the text of the paragraph (which is its parent). The ______ does not appear on a new line.

A

span

79
Q

A _________ element gets displayed on a new line (and takes up the whole available line), may contain additional _______ or inline elements, and its height and width can be explicitly set.

A

block-level

block-level

80
Q

By default, block-level elements will take up the entire width of whatever element they appear inside of, but we can override this by explicitly setting the _______ or __________ property on an element.

A

width

max-width

81
Q

An ________ element displays _______ like a span or a element, but you can give it an explicit width, height, margin, and padding.

This can be a good approach when you need to create elements with a set width, but you also need them to display side-by-side.

A

inline-block

inline

82
Q

Write CSS code for the .inner lines below to appear on the same line. They all should have 100px height.

A

See answer

83
Q

is a valuable recipe that you should memorize. Whenever you need to horizontally center a block-level content within some parent element, this technique is your friend. By setting __________ to auto, it ensures that the element will remain centered, even if its parent element changes in size or moves.

A

margin-left: auto

margin-right: auto

84
Q

margin-left: auto; margin-right: auto is a valuable recipe that you should memorize. Whenever you need to horizontally center a block-level content within some ______ element, this technique is your friend. By setting left and right margins to auto, it ensures that the element will remain centered, even if its ______ element changes in size or moves.

A

parent

parent

85
Q

When you need to horizontally center inline elements within a _______, text-align: center does the trick.

A

block element

86
Q

When you need to horizontally center ________ within a block element, text-align: center does the trick.

A

inline elements

87
Q

_______ are individual components that a user interacts with - typically corresponding to a single data point. HTML provides numerous ______ types (text, email, number, password, etc.), and _____ types differ in how they are rendered. _______ also vary in how they are validated.

A

Inputs

input

input

Inputs

88
Q

_____ are containers that hold a set of inputs.

A

Forms

89
Q

The _____ element wraps all our inputs and labels.

A

,,<,,form,,>,,

90
Q

The ,,<,,form,,> element wraps all our inputs and labels. To progressively support all users you’ll want to set the ______ and _____ attributes. This will ensure user input can be submitted even if JavaScript is disabled or breaks.

A

action

method

91
Q

The ______ attribute is the URL of the server endpoint that submitted form data should be sent to.

A

action

92
Q

In dealing with Forms in HTML, the _______ attribute is the request ______ that the browser should use when sending the data to the server.

A

method

method

93
Q

The method attribute is the request method that the browser should use when sending the data to the server. Usually you’ll want _______, but ________ is also possible. We won’t go into details of ________ for now, but know that the server will expect to receive data via one of these two methods, and you’ll need to adjust your form’s method accordingly.

A

method=”post”

method=”get”

get vs. post

94
Q

The _______ element is used to group together related inputs and labels. In the example above, we use a_______ to group together the contact info related inputs and their labels, as well as the radios and labels that ask the user about how they feel. In the CSS for this repl.it, we’ve overridden some default styling for our _______. The main reason to use _______ is that they help web crawlers and screen readers understand how inputs are grouped together (even if this is not revealed visually to sighted users)

A

fieldset

fieldset

fieldsets

fieldsets

95
Q

The _______ element is like a title for the fieldset.

A

legend

96
Q

________tell human users, web crawlers, and screen readers what an input is for — using the for attribute

A

Labels

97
Q

The for attribute goes on a label, and its value should be set to the ID of the input it’s for. Although you’re generally discouraged from using IDs as CSS selectors, you must use IDs for ______ association to work. This association is what makes inputs take focus when you click on their ______

A

label

labels

98
Q

While the label element requires opening and closing tags, ______ do not.

A

inputs

99
Q

Write up HTML code for 1) a label that is the first name

2) give same label on another line the input id and type and name.

A
100
Q

________is used to set text that initially displays before the user has input any data. Typically, _________ are used for example entries, and usually, they’re styled to be lighter than user input text. Because they are meant to offer examples of desired input, they should not be used in place of labels.

A

placeholder

placeholders

101
Q

_________ is used to indicate that an input must be filled out.

A

required

102
Q

The ______ attribute is used to supply regular expression patterns that the user’s input must match in order to be valid. In the example above, we use this to require that the phone number entry consists of only numbers, and optionally dashes.

A

pattern

103
Q

This attribute determines how the element looks and how its validation works. For instance, an _____ with type=’email’ will be valid if the user _____ text that has an @ with text before and after. ____ types also provide some accessibility by dictating the kind of keyboard a smartphone will display for a user: number _____ will show only the number pad; email _____ will show a keyboard with the @ symbol in a prominent place.

A

input

inputs

Input

inputs

inputs

104
Q

The _______ element is used to let users choose from a list of options.

A

select

105
Q

..<..select..> tags wrap a set of one or more _________, and you can pre-select an individual ..<..____..> by adding the selected attribute.

A

options

option

106
Q

..<.._______..> elements to allow users to submit and reset the form. This is done by setting the type attribute.

A

button

107
Q

_____________________________________ is a set of attributes that define ways to make web content and web applications (especially those developed with JavaScript) more accessible to people with disabilities

A

Accessible Rich Internet Applications (ARIA)

108
Q

The ______________________ is a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document. The ____ represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. ___ methods allow programmatic access to the tree; with them one can change the structure, style or content of a document. Nodes can have event handlers attached to them. Once an event is triggered, the event handlers get executed.

A

Document Object Model (DOM)

DOM

DOM

109
Q

__________refers to the default way browsers render content. Under ________, block-level elements get rendered in the same order that they appear in the HTML markup, one on top of another, starting from the top left corner of the document, and inline elements stretch as wide as their inside content (usually text).

A

Normal flow

normal flow

110
Q

Any HTML element with the position: static (which is also to say, any element that you don’t explicitly set position to a different value on) will have what is called ____________.

A

normal flow

111
Q

position: _____ – or rather, not setting any value for position on an element – is often the behavior we want. Unless you have a specific reason to choose one of the other possible values discussed below, then don’t explicitly set position.

A

static

112
Q

When an element’s position is set to _____, it will stay in place even when the user scrolls. _____ elements are taken out of the normal flow, and other elements will position themselves as if the fixed element does not exist. For navbars or footers that you want to remain stuck to the top or bottom of the screen, this is often the best approach.

A

fixed

Fixed

113
Q

In CSS, write code to give the .foo a fixed position (versus static).

A

.foo {

width: 100px;
height: 100px;
position: fixed;

}

114
Q

CSS gives us four offset properties: left, right, top, bottom. These properties can be used on elements whose position is set to fixed, relative, and absolute, but not _______.

A

static

115
Q

CSS gives us four offset properties: ___ , ____ , ____ , ____. These properties can be used on elements whose position is set to fixed, relative, and absolute, but not static.

A

left, right, top, bottom

116
Q

This is because fixed elements are fixed in relation to the _____________

A

viewport (aka, the browser window).

117
Q

Write CSS code to anchors the .foo div to the top left corner of the window…and what is this called?

A

.foo {

left: 0;
top: 0;

}

**called offset properties vs. Static or fixed.

118
Q

When an element’s position property is set to ____________, it is still in the normal flow (in other words, relatively positioned elements are rendered in the order they appear in HTML), but unlike with static elements, we can use offset properties (left, right, top, bottom)

A

relative

119
Q

Note that any offsets on a relative element are in relation to where they would be in the normal flow, not the ____________.

A

viewport (screen)

120
Q

Note that any offsets on a ________ element are in relation to where they would be in the normal flow, not the viewport.

A

relative

121
Q

Like fixed elements, ________ elements are outside the normal flow and can be offset, but unlike fixed elements, they are offset in relation to the first parent container with a non-static position.

A

absolute

122
Q

A common use case for ______ positioning is when you have a navbar where you want to align a logo to the left and a set of links to the right.

A

absolute

123
Q

Our advice for you at this point in your learning is to use floats only when you need to wrap ____ around an element.

A

text

124
Q

To use Flexbox, simply define a flex container using the CSS property ____ ____. A container can be any element on an HTML page including the ..<..body..> element. All direct children of the container are called items. Items are the elements that will be arranged by Flexbox.

A

display: flex

125
Q

To use Flexbox, simply define a flex container using the CSS property display: flex. A container can be any element on an HTML page including the ..<..body..> element. All direct children of the container are called ____…and they are the elements that will be arranged by Flexbox.

A

items

126
Q

The Flexbox model is managed by specifying either the behaviour of the flex ______ or the behaviour of the flex _____.

A

container

items

127
Q

The flex container (at the container level) **NOT AT THE ITEM LEVEL** is controlled by three main properties:

A

flex-direction

justify-content

align-items

128
Q

flex-direction describes the main ____ of the container, that is, whether items are laid out horizontally in a row or vertically in a column.

In either case, there is a start and end of the flex container. By default, items are added to the container from the start of the container towards the end of the container.

A

axis

129
Q

flex-direction accepts 4 possible values: __, __, __, __.

A

row - this is the default, items are laid out from left to right

row-reverse - items are laid out from right to left

column - items are laid out from top to bottom

column-reverse - items are laid out from bottom to top

130
Q

In CSS, setup the container to have a flex display with a direction on the row, meaning left to right.

A

container {

display: flex;

flex-direction: row;

}

131
Q
A