Created by Jack Lovett-Earles
over 4 years ago
|
||
Question | Answer |
Background-attachment | Sets whether a background image is fixed or scrolls with the rest of the page |
Background-clip | Specifies the painting area of the background |
Background-position | Sets the starting position of a background image |
Background-size | Specifies the size of the background image(s) |
background shorthand | background-color background-image background-repeat background-attachment background-position |
2 shadow properties | text shadow & box shaddow |
Positioning context | Fixed & sticky is the viewport, absolute is another element & relative is itself. |
Inline-block vs inline | Inline-block: allows a height & width to be set on an element. display:Inline top & bottom margins & paddings aren’t respected. |
pseudo-class | pseudo-class is used to define a special state of an element. Eg :hover, :active, :focus, :first-child, :last-child, :nth-child(n), |
pseudo-element | pseudo-element is used to style specified parts of an element. Eg Style the first letter, or line, of an element. Eg ::first-line, ::first-letter, ::before, ::afte |
[attribute] selector | [attribute] selector is used to select elements with a specified attribute. |
What is Em | Relative to the font-size of the element (2em means 2 times the size of the current font) |
what is rem | Relative to font-size of the root element |
Want to create your own Flashcards for free with GoConqr? Learn more.