Flexible Images Flashcards

1
Q

What css rule allows us to create fluid images?

A

img {
max-width: 100%;
}

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

We can apply max-width to other media (e.g. video, embed elements) to make them flexible. True or false?

A

True

img, embed, object, video, {
max-width: 100%;
}

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

What’s the difference between max-width: 100% and width: 100%?

A

max-width: means an item can take up to 100% of the containing element. Width means it’s 100% of the containing element.

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

What happens if an image is wider than it’s container?

A

It will break its container and bleed out to display all of the image

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

What Microsoft css filter can we use to address issues with artefacts in css scaled images?

A

AlphaImageLoader

.logo {
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=”sample.png”, sizingMethod=”scale”);
}

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

Apart from making our images flexible, what are other options for dealing with images that exceed their container

A

Use Css:

Overflow: hidden - This would hide parts of the image that did not fit their container.

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