Week 4 Part 2 Flashcards

1
Q

Default behaviour is not to overlap

A

Block element

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

Will not overlap within the block they are contained in

A

Default is that inline elements will not overlap within the block they are contained in

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

T/F - Block and inline elements usually have their own height, independent of their content

A

False.

By default block and inline elements have the height of their content.

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

T/F - Inline elements have the width of their content

A

True

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

T/F - Block elements have a width that spans the width of their parent

A

True

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

This property was created to allow authors to specify how elements should behave in layouts

A

The display property

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

Default Layour

A

Display:Inline

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

display: block;

A

Displays element as block element (like <p>)

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

display: none;

A

Element will not be displayed (no effect on layout)

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

This makes elements appear in a chosen area in a sea of text

A

float. float left = element on left , text on right

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

After float is used, this is used to prevent subsequent elements from floating on the left / right

A

clear: left / right/ both / none

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

What does clear:none do?

A

Lets elements float on either side

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

Position properties: default, appear in document, linear flow

A

position: static

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

Position properties: positioned relative to its normal position

A

position: relative

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

Position properties: relative to a browser window

A

position: fixed

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

The CSS Flexbox is a simpler layout system, is the CSS Flexbox Layout typically used for the whole page?

A

No, it’s typically used for parts of a web page

17
Q

Defines an element as a flexbox container

A

display:flex

18
Q

This property defines the direction of the main axis of a flexbox

A

flex-direction - row, row-reverse, column, column-reverse

19
Q

This property determines whether and how flex items wrap when the main axis is full

A

flex-wrap - nowrap (forces single line, may cause overflow),
wrap, wrap-reverse

20
Q

Property defines how the browser distributes space between/around content items along the main axis of a flex container

A

justify-content - right, center, left

21
Q

What do these do?
flex-basis: 200px/auto
flex-grow: 2
flex-shrink:

A

flex-basis: determines initial size of the flex item (any unit). “auto” means that the size is determined by the height and weight

flex-grow: Defines the growth factor of an element relative to the other items
flex-shrink: defines how much an item will shrink when not enough space in the container

22
Q

Flexbox vs grid: What’s the main difference?

A

Flex is one dimensional, grid is two dimensional

23
Q

The grid layout has 2 elements, what are they?

A

The grid container and grid items

24
Q

This is a block-level element that acts as a parent to the elements inside of it. You can configure a set # of rows/columns

A

Grid container

25
Q

Elements that reside within the grid container. Either the programmer or the browser will assign these to specific parts of the grid

A

Grid items

26
Q

T/F - Height and width of grid columns and rows will in general be the same

A

False. Height and width of grid columns and rows will in general vary

27
Q
  • Free front end framework for faster and easier web development.
  • Includes HTML, CSS design templates for typography, forms, buttons, tables, etc.
  • Gives the ability to create responsive designs
A

Bootstrap

28
Q

This term refers to websites that are designed to gracefully adapt to screen size.

A

Responsive Web Design

29
Q

Fluid grid with the layout defined proportionally rather than with fixed dimensions
Flexible images and video that scale to fit within the grid
What am I describing?

A

Responsive Web Design

30
Q

Comments, consistent naming conventions, meaningful class/ID, consistent formatting, group like style, split up files

What does this describe?

A

Great ways to organize CSS

31
Q

By default, do block and inline elements have the width of their content?

A

Only inline elements, block elements have the width of the page