Styling CSS Flashcards

1
Q

Not all browsers support newer CSS features, like opacity (a value = transparent) or HSL, what would you include in your code to work around this obstacle?

A

.container {
font-color: rgba(22, 29, 145, 0.50);
font-color: rgb(22, 29, 145,);
}

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

What is the difference the foreground and background?

A

The foreground is the color of the selected letters and background color is the color of the area behind the selected letters. For example:

foreground color is: color: Aqua;
background color is: background-color: MidnightBlue;

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

What does HSL stand for? What does each letter mean?

A

Hue - represented on a color wheel and take values between 0 and 360
Saturation is the amount of gray in a given color. It’s specified using a percentage between 0% and 100%, 0 showing a shade of gray, 50 being normal and 100 being white.
Lightness is the amount of white in a given color. Also specified using a percentage. 0 shows black, 50 norma and 100 white.

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

How do you modify RGB colors and HSL to include how transparent the color is?

A

color: rgba(21, 72, 124);

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

What are the three declarations for the color property and give an example of how to write all three color declarations.

A

The three color declarations are:

  • rgb
  • hsl
  • hex

color: rgb(21, 72, 52);
color: #09AA34;
color: hsl(20, 86%, 72%);

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