IES: CSS-deck 18 Flashcards
1
Q
Default browser behaviors- CSS box model:
A
- browsers apply own default values to CSS box model according to their “user agent style sheet”
- Browser applies specified padding/borders/etc outside specified element size (i.e. element becomes larger than specified)
2
Q
outline
:
A
- Property that can be applied to the user interface
- accepts same values specified to
border
- Ex.
outline
: 2px solid RoyalBlue; (draws a solid two-pixel royal blue outline around an element) - Unlike
border
,outline
is not part of element dimensions (element total width/height- unaffected byoutline
) -
outline
on a different z-axis level (may overlap other content)
3
Q
“border-box”:
A
-
box-sizing
value - means element edge is the same as any border edge
4
Q
outline-offset
:
A
- Property that can be applied to the user interface
- specifies space between outline and the element edge (or border edge)
- Specify a distance value to this property
- Ex.
outline-offset
: 5px;
5
Q
resize
:
A
- property that can be applied to the user interface
- allows the user to resize an element horizontally, vertically, or both
- This is typically performed by dragging the bottom-right corner of the element figure
- Should always be accompanied by the
overflow
style rule (handles content overflow if user reduces the element dimensions enough)
6
Q
“both”:
A
- a
resize
value/keyword - Allows user to resize element horizontally and vertically
7
Q
“horizontal”:
A
- a
resize
value/keyword - when specified, user is restricted to resizing only the width
8
Q
“vertical”:
A
- a
resize
value/keyword - when specified, user is restricted to resizing only the height
9
Q
column-count
:
A
- requires an integer value be specified
- determines the column number- text divisions desired
- Typically creates a gap between columns: 1em wide by default
10
Q
column-gap
:
A
- CSS property-goes in tandem with column-count
- chooses inter-column gap (“gutter”) size by specifying a distance
- Ex.
column-gap
: 50px;
11
Q
column-rule
:
A
- With a wider “gutter”, then adds a vertical ruled line
- Accepts same values as
border
: width, style, color values -
column-rule
is shorthand forcolumn-rule-width
,column-rule-style
,column-rule-color
- specifying style is required; all other initial values will assume default value
- Ex.
column-rule
: 5px dotted RoyalBlue (adds vertical 5px-wide dotted RoyalBlue line(s) between the columns- line number based on column number)
12
Q
column-span
:
A
- use where you prefer elements to span across columns (Ex. headings)
- specify columns to span as integer value or “all”
13
Q
column-width
:
A
- specifies a width size to the column(s)
- Browser treats this as a minimum width suggestion
- If two columns at specified width will not fit, will revert to a single-column
14
Q
columns
:
A
- shorthand: specifies column-width & column-count values
- Using columns and column-rule shorthand, can specify large numbers of columns concisely
15
Q
“flex”:
A
-
display
value - defines element as a “flex container”
- creates flexible layout- responds to various browser screen sizes
- elements within the flex container will appear on a single row by default (can be specified otherwise)
- All modern browsers support “flexbox”/
display: flex;
/”flex container” since:
1. Chrome 29.0
2. Edge 11.0
3. Firefox 22.0.
4. Safari 10
5. Opera 48