5 - Layout/ Positioning Flashcards

1
Q

What is a tag?

A

For navigation links ie

<a>HTML</a>

Modified in the CSS with:
nav a {color:#660066;
text-decoration:underline;
font-weight:bold; }

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

A class tag can modify multiple parts of a page (inlike an id tag). How are they modified?

A

by using a dot rather than #

ie: .info{font-size:20px}
accesses:

<p></p>

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

What is used to fix the size of an element?

A

px.

Tightly controlled but more stable.

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

What is used for a fluid layout?

A

%.

Adapts to different viewport sizes but layout can break & images can stretch.

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

What is used for an elastic layout?

A

em.

Good for text but can be difficult to get right for layout/ positioning.

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

Absolute positioning lets you…

A

specify where on the page you want to place part.

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

Relative positioning allows you…

A

to position elements in relation to the page.

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