Simple Website - Properties Flashcards
color
Sets the text color of an element. Accepts any CSS color unit.
background-color
Sets the background color of an element. Accepts any CSS color unit.
text-decoration
Primarily used to add or remove underlines from text.
max-width
Sets the maximum width of an element. Accepts any CSS length unit.
margin
Sets the space around the exterior four sides of an element. Accepts any CSS length unit.
padding
Sets the space on the interior four sides of an element. Accepts any CSS length unit.
text-align
Sets the justification of text, similar to a word processor. For example, text can be set to be aligned to the left, right, or center.
font-family
Defines which fonts should be applied to text.
font-size
Sets the size of text in either relative or absolute units.
font-weight
Sets the visual weight of text, which is more commonly known as “bold” as is the case in word processors.
line-height
Set the amount of space between each line of text. Accepts any CSS length unit.
list-style
Sets the style of numbers or bullet points for ordered and unordered lists. The marks can also be removed entirely with the value “none”.
float
Allows an element to be taken out of the normal flow and placed to the left or right of its container. Text and other inline elements will wrap around it.
clear
The clear property specifies whether an element can be adjacent to floated elements or if it should be moved down and “clear” any floated elements.
display
Sets whether an element should be rendered as a block element, inline element, or inline-block element.
border-radius
Defines the roundness of a border corner. Accepts any CSS length unit.
background-image
Accepts an image path that applies the file to the background of an element.
background-size
Sets the size of background images.
background-repeat
Sets whether or not a background image should be repeated. By default, backgrounds will repeat.
border
CSS shorthand property that allows for a visual outline or “border” to be applied to an element. Accepts a length unit to define the border-width, a keyword to define the border-style, and a color unit for the border-color.