CSS Code and meaning Flashcards
The objective is to learn some of the coding and what it does
Element remains in the same position but now appears invisible
visibility:hidden;
what display: value removes elements from the flow of a webpage?
display:none;
in order to center an element inside it’s parent use this code:
margin: 0 auto;
to center something horizontally in modern browsers use this code:
display:flex;
Justify-content: center;
allows you to define the desired width to height ratio of an elements box
aspect-ratio; ;
allows you to set the minimum and max values. Size can change but only up to the set point within the range
clamp()
If you scroll this element will alway stay in view of your page.
position:sticky;
positioning feature that is relative to it’s containing block, the position and dimensions of an element.
position:absolute;
position is always relative to the initial containing block
position:fixed;
is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left
positioned;relative;
flex-wrap?
flex-wrap
flex-direction?
flex-direction
flex-grow?
flex-grow
flex-basis?
flex-basis
pseudo-class that is used to apply styles based on the number of times an element appears in a certain context
: nth-child;