CSS Flashcards

1
Q

What is the difference between classes and IDs in CSS?

A
  • An element can have multiple classes
  • Multiple elements can have the same class
  • IDs should apply to only one element
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the difference between “resetting” and “normalizing” CSS?

A

a

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

Describe Floats and how they work.

A

a

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

Describe z-index and how stacking context is formed.

A

a

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

Describe BFC(Block Formatting Context) and how it works.

A

a

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

What are the various clearing techniques and which is appropriate for what context?

A

a

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

Explain CSS sprites, and how you would implement them on a page or site.

A

a

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

What are your favourite image replacement techniques and which do you use when?

A

a

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

How would you approach fixing browser-specific styling issues?

A

a

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

How do you serve your pages for feature-constrained browsers?

A

a

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

What are the different ways to visually hide content (and make it available only for screen readers)?

A

a

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

Have you ever used a grid system, and if so, what do you prefer?

A

a

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

What are media queries?

A

a

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

How do you style SVG?

A

a

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

How do you optimize your webpages for print?

A

a

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

What are some of the “gotchas” for writing efficient CSS?

A

a

17
Q

What are the advantages/disadvantages of using CSS preprocessors?

A

a

18
Q

How would you implement a web design comp that uses non-standard fonts?

A

a

19
Q

Explain how a browser determines what elements match a CSS selector.

A

a

20
Q

Describe pseudo-elements and discuss what they are used for.

A

a

21
Q

Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.

A

a

22
Q

What does * { box-sizing: border-box; } do? What are its advantages?

A

a

23
Q

List as many values for the display property that you can remember.

A

a

24
Q

What’s the difference between inline and inline-block?

A

a

25
Q

What’s the difference between a relative, fixed, absolute and statically positioned element?

A

a

26
Q

The ‘C’ in CSS stands for Cascading. How is priority determined in assigning styles (a few examples)? How can you use this system to your advantage?

A

a

27
Q

What existing CSS frameworks have you used locally, or in production? How would you change/improve them?

A

a

28
Q

Have you played around with the new CSS Flexbox or Grid specs?

A

a

29
Q

How is responsive design different from adaptive design?

A

a

30
Q

Have you ever worked with retina graphics? If so, when and what techniques did you use?

A

a

31
Q

Is there any reason you’d want to use translate() instead of absolute positioning, or vice-versa? And why?

A

a