Elements Flashcards

1
Q

Sections

A

A section is a layout element with a width of 100% that extends across the full width of the browser window. Sections play an important role in the structure and layout of a page. Sections let you create separate blocks of content and divide the page into meaningful segments.

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

To have a good, consistent website structure, add sections in the body element, then organize your content in ________ placed inside these sections.

A

Containers

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

The height of a Section automatically adjusts to its content- as you add elements, the section grows taller. You can set a specific height in the style panel.

A

Note

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

Combo classes

A

Combo classes let you add combination styles and are based on the original section class — you can override styles and add style on top of the combo class.

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

Auto height

A

When you add text and media to a Section, the height changes to define the height. No matter how much content you add, the Section height respects the content inside.

A Section’s padding also affects its height. It’s best practice to set a Section’s top and bottom padding and add content to let it adjust accordingly.

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

Minimum height

A

To set a specific height on a Section, it’s a good idea to set a min-height (e.g. 500px) so the Section can expand with its content.

If you set a normal height, content will eventually spill out or get cut off.

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

When should you use components?

A

Components allow you to maintain a consistent, efficient, and scalable design workflow by creating customizable blocks from elements and child elements. Reuse those blocks across your site, and modify them in a single place to avoid individually revising each recurring layout.

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

What are the two ways you can use components?

A
  1. Create identical content per instance. Create identical copies of recurring layouts that have the exact same content, like nav bars, footers, and sign-up forms. Edit them in one place and see those changes impact every instance of that component.
  2. Create unique content per instance. Modify recurring layouts with different text, image, video, or rich text to maintain a consistent design while giving each instance unique content.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Container

A

The container element is useful for keeping your content neatly organized toward the center of the screen. It’s typically used in tandem with a section element.

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

What is the anatomy of a container?

A

A container is a div block with predefined styles. It has a 940-pixel max-width on larger displays to keep your content centered relative to the browser window. On smaller devices (like phones and tablets), containers extend the full width of the screen.

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