CSS Unit 2.2 CSS Enhanced design Flashcards
The font property is a shorthand property for:
font-style font-variant font-weight font-size/line-height font-family (see css tricks)
What css short hand property can we use instead of the “background-image”? What are some values we can give this property? (3)
background:
url()
top center /* be to add a ‘/’ after */
repeat-y
If we wanted to add a gradient to a call out button that goes from bottom to top right how would that look?
linear-gradient (to top right, #000, #000);
In a style pane when using chromedev tools, what does it mean when you see a crossed out declaration and a/or a greyed out one?
Crossed out declarations mean they’re being over ridden and greyed out means it’s just not being applied.
Define Normalize.css
is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements. It’s a modern, HTML5-ready, alternative to the traditional CSS reset.
Define “flexbox container”
sets the context for flexbox layout; it contains flex items, the actual elements you layout using flexbox.
Define “flex item”
Every direct child of a flex container is called a flex item; there can be any number of flex items inside a flex container.
In css make a class a flex box container
.class {display: flex;}
define “flex-direction” property
CSS property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed).
Using “flex box” properties how do we make flex items wrap so they don’t off the edge of a viewport?
flex-wrap: wrap;
Define “justify-content”
property defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container.
define the “order” property
property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order.