Applied Visual Design Flashcards

(58 cards)

1
Q

What are the options for text-align

A

justify
center
right
left

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

What is the justify option for text-align

A

causes all lines of text except the last line to meet the left and right edges of the line box.

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

Change the width of images to 220px

A

img{
width: 220px;
}

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

What are the different ways to express width

A

em
px
% relative to its parent

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

Set the height of h4 to 35px

A

{h4 style=”height: 35px;”}

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

What are the different ways to make text bold

A

font-weight: bold;
{strong}text/strong}
font-weight: 800;

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

What are the different ways to underline text

A

text-decoration: underline

{u} text {/u}

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

What are the different ways to italicize text

A

font-style: italic;

{em} text {/em}

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

How do you strike through text with CSS

A

text-decoration: strike-through;

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

How do you strike through text without CSS

A

{s} text {/s}

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

How do you add a horizontal line between a p and h4 element

A

{p} {/p}
{hr}
{h4} {/h4}

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

How do you adjust background color opacity

A

background-color: rgba(x,x,x,x);

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

What are the values for opacity

A

0.0 - 1.0

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

set font of a h3 elements to 25px

A

{h3 style=”font-size: 25px;”}

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

How do you add a shadow to an element

A

box-shadow

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

What are the properties for box shadow

A
offset-x
offset-y
blur-radius  (optional)
spread-radius (optional)
color
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How do you control how transparent an element is

A

opacity

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

Set all p tags to 75% opacity

A

p {
opacity: .75;
}

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

What does it mean when opaque is set to 1

A

element is not transparent at all

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

How do you make sure your element is capitalized

A

text-transform: capitalize;

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

How do you make all letters uppercase in your element

A

text-transform: uppercase;

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

How do you make all your letters lower case in your element

A

text-transform: lowercase;

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

What does text-transform: inherit; do

A

Inherit text transform property from the parent element

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

What are the different text-transform properties

A
uppercase
lowercase
capitalize
initial 
inherit
none
25
Set font size for a paragraph to 16px
p { font-size: 16px; }
26
Set the spacing between each line in a paragraph to 15px
p { line-height: 15px; }
27
What is a pseudo class
A keyword that can be added to selectors to select a specific state of the selector
28
Change the color of the anchor tag to red when a mouse hovers over it
a:hover { color: red; }
29
What does changing an element's relative position do
Specify how CSS should move the element relative to its current position in the normal flow of the page. Other elements around it behave as it is in the default position
30
What is the default layout of elements called
Normal Flow
31
How do you change the relative position of an element
position; relative; | paired with offset property top, bottom, left or right
32
What do each of the offset positions do
``` Push elements opposite from direction top pushes down bottom pushes up left pushes right right pushes left ```
33
What is absolute positioning
Locks element relative to its parent container | removes element from normal flow of document
34
What is fixed positioning
Locks element relative to the browser | Removes element from normal flow
35
What positioning do nav bars usually have
fixed positioning
36
What is the difference between fixed and absolute positoning
With fixed positioning, element wont be moved when scrolling
37
What does float do
Floating elements removed from normal flow and pushed either to the left or right of its parent Usually paired with the width property
38
When elements are overlapped how do you control which element appears on top
z-index property with higher number
39
How can you center an element
margin: auto;
40
What is the complimentary color to red
cyan
41
What is the complimentary color to green
magenta
42
What is the complimentary color to blue
yellow
43
What are tertiary colors
combining primary colors with secondary colors
44
What is the hsl
Hue, Saturation, Light
45
What is hue in hsl
The spectrum of color | from 0 to 360
46
What is saturation in hsl
level of gray between 0%(gray) to 100%(no gray)
47
What is light in hsl
amount of white or black in color 0% black 50% the normal color 100% white
48
Use a linear-gradient() for the div element's background, and set it from a direction of 35 degrees to change the color from #CCFFFF to #FFCCCC.
div { background: linear-gradient(35deg, #CCFFFF, #FFCCCC); }
49
How to create a stripped gradient
background: repeating-linear-gradient
50
``` Create a striped gradient that goes across at 45degrees with the following blend yellow 0px blue 40px green 60px red 80px ```
``` background: repeating-linear-gradient( 45deg, yellow 0px, blue 40px, green 60px, red 80px, ) ```
51
Create a striped gradient that goes horizontally with yellow bars that are 40px followed by black bars that are 40px
``` background: repeating-linear-gradient( 90deg, yellow 0px, yellow 40px, black 40px, black 80px); ```
52
Set the background of the body to https://cdn-media-1.freecodecamp.org/imgr/MJAkxbh.png
body { background: url(https://cdn-media-1.freecodecamp.org/imgr/MJAkxbh.png); }
53
Increase the size of p tags by a factor of 2
p { transform: scale(2); }
54
Move h2 tag to the left by 50%
h2 { left: 50%; }
55
What are some transform properties
scale skew rotate
56
Increase the size of h2 tags by 50% when a mouse hovers over it
h2:hover { transform: scale(1.5); }
57
Skew the x axis of h1 element by 20 deg when hovered over
h1:hover { transform: skewX(20deg); }
58
Skew the id top along the y axis by -30deg
``` #top { transform: skewY(-30deg); } ```