CSS General Flashcards
(84 cards)
What CSS property is used to set the size of the text?
font-size
What property controls the space outside of an element’s border?
margin
What property controls the space inside an element’s border?
padding
What property sets the color of text?
color
What property sets the background color of an element?
background-color
What CSS property makes text bold?
font-weight
What property changes the style of the font to italic?
font-style
What property changes the font of the text?
font-family
What property hides an element from the page layout?
display:none
What property controls whether an element is visible or not, without affecting layout?
visibility
What CSS property is used to change the positioning type of an element?
position
What property is used to layer elements over one another?
z-index
What property allows an element to float to the left or right?
float
What property is used to clear floats?
clear
What CSS property is used to set the width of an element?
width
What property sets the height of an element?
height
What CSS property forces an element to create a new block formatting context?
overflow
What CSS function allows mathematical expressions to determine values dynamically?
calc()
What CSS function allows a responsive range between min, preferred, and max values?
clamp()
What CSS property sets the background to a smooth gradient?
background-image
What CSS property adds shadow to text?
text-shadow
What CSS property adds shadow to boxes or elements?
box-shadow
What property makes the corners of an element rounded?
border-radius
What CSS property allows transitions between property changes?
transition
- ` or `
- `?