CSS Flashcards

1
Q

h1, h2, p {
text-align: center;
}

A

aligns to center of page

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

id value

A

selected to target a specific element with an id attribute

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

/* */

A

creates a comment

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

margin-left: auto;
margin-right: auto;

A

margin as invisible space around an element.

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

.class

A

another way to link <div> to css

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

background-image: url()

A

sets background image

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

.item p {
display: inline-block;
}

A

displays code on the same line even if they are different paragraphs

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

padding-left,right,bottom,top

A

gives some space between the content and the sides.

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

max-width

A

prevent width from growing too wide.

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

font-family

A

allows you to change the font

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

What is this doing?
font-family: Impact,serif;

A

Acting as a allbacks are used in instances where the initial is not found/available.

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

font-size

A

size of text

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

border-color

A

changes color of border

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

a:visited {
color: grey;
}

A

changes the color to grey when page is visited.

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

a:hover {
color: brown;
}

A

if you hover over a text it will change the color to brown

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

a:active{
color: white;
}

A

changes link color to white if link to clicked.

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

what do the inputs mean hsl(240,100%,50%)

A

hue of color wheel, saturation and lightness

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

rgb(200,13,45)

A

mixed of red green and blue on rgb wheel

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

linear-gradient(90deg,hex,rgb or hsl)

A

allows to add a gradient of two colors on each side and joins them together

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

opacity

A

transparently of an item 0% is solid and 100% see through.

21
Q

border-left

A

shorthand property lets you to set the left border’s width, style, and color at the same time.

Here is the syntax:

border-left: width style color;

22
Q

box-shadow
box-shadow: offsetX offsetY color;

A

property lets you apply one or more shadows around an element.

23
Q

offsetX

A

a positive offsetX value moves the shadow right and a negative value moves it left

23
Q

offsetY

A

a positive offsetY value moves the shadow down and a negative value moves it up

24
Q

rem

A

The rem unit stands for root em, and is relative to the space inbetween new lines of while using the display: block in css html element.

25
Q

1,2,3,em

A

In CSS (Cascading Style Sheets), em is a unit of measurement which indicates size relative to the size of the font. 1em means “equal to the current font size”, and 2em means 2 times the current font size.

26
Q

vh

A

stands for viewport height, and is relative to 1% of the height of the viewport.

27
Q

vw

A

vw stands for Viewport Width and represents a percentage of the width of the viewport. The number placed before vw is the percentage of the width of the viewport this length will be. For example if you wrote 10vw then this would represent a length of 10% of the width of your viewport.

28
Q

unset

A

un does what was done in a different css style

29
Q

p:last-of-type { }

A

That will select the last p element. Create a new selector that targets the last element of p

30
Q

Overflow: hidden

A

changing the element back to its original dimensions.

31
Q

filter: blur(2px);

A

adds a blur filter

32
Q

transform: rotate(-0.6deg);

A

rotate it counter clockwise by 0.6 degrees.

33
Q

box-sizing: can add border-box or content-box ;

A

does a box around your item you want

34
Q

text-transform: uppercase, lowercase ;

A

allows you to change text to upper or lower case

35
Q

Flexbox
display: flex;

A

Flexbox is a one-dimensional CSS layout that can control the way items are spaced out and aligned within a container.

36
Q

flex-direction: row, row-reverse, column, column-reverse ;

A

The main axis is defined by the flex-direction property, which has four possible values:

row (default): horizontal axis with flex items from left to right
row-reverse: horizontal axis with flex items from right to left
column: vertical axis with flex items from top to bottom
column-reverse: vertical axis with flex items from bottom to top
Note: The axes and directions will be different depending on the text direction. The values shown are for a left-to-right text direction

37
Q

flex-wrap: wrap, nowrap;

A

The flex-wrap property determines how your flex items behave when the flex container is too small. Setting it to wrap will allow the items to wrap to the next row or column. nowrap (default) will prevent your items from wrapping and shrink them if needed.

38
Q

justify-content: center,left,right space-between;

A

allows you to align the flexbox

39
Q

align-items property

A

The align-items property positions the flex content along the cross axis.

40
Q

object-fit: cover;

A

object-fit property to determine how images should behave.

property and set it to cover. This will tell the image to fill the img container while maintaining aspect ratio, resulting in cropping to fit.

41
Q

The gap property and its row-gap and column-gap

A

provide this functionality for flex, grid, and multi-column layout.

42
Q

border-radius

A

smooth out edges

43
Q

::after{}

A

The ::after pseudo-element creates an element that is the last child of the selected element.

44
Q

*

A

used to select all elements

45
Q

font-weight

A

makes font a lot darker

46
Q

letter-spacing

A

property can be used to adjust the space between each character of text in an element.

47
Q
A