IES: CSS-deck 16 Flashcards
1
Q
table-cell
A
- display style
- allows the text to be centered horizontally and vertically
2
Q
box-shadow
A
- enhances content box appearance
- add drop-shadow effects
- multiple shadow rules can create a border around the text
3
Q
text-shadow
A
- enhances text
- similar to the box-shadow
- adds drop-shadow effects
- multiple shadows can be added to the text by specifying a comma-separated list
4
Q
-shadow effects:
A
- horizontal and vertical offset values must be specified to position the shadow
- positive values: positions to the right and below the item
- negative values: positions to the left and above the item, respectively
- Ex. 20px 10px: 20px to the right and 10px below the item
- a third value specifies how blurred the shadow’s edge will be (the edge blurs ascending with the value)
- a fourth optional value specifies how far the shadow will extend beyond the offset: the spread
5
Q
“inset”
A
- text-shadow value/keyword
- can be used to create an inner shadow
6
Q
shadow colors
A
- color specification is not strictly required, but it is recommended
- color specification avoids inconsistencies between web browsers
7
Q
functions to create gradient fills:
A
- CSS provides four:
1. linear-gradient ()
2. repeating-linear-gradient ()
3. radial-gradient ()
4. repeating-radial-gradient ()
8
Q
linear-gradient ():
A
- a gradient fill creation function
- creates the color transition along a linear path blending from one “color stop” point to another
- each color stop may be specified (parentheses) simply as comma-separated color values, or as comma-separated color and position value
- Ex. red, yellow OR red 50%, yellow 100%: defines color stops at the path’s mid-point and end
- must be at least two color stops, but you can specify 2 + color stops
9
Q
linear-gradient () function path:
A
- default direction is top-to-bottom
- define alternate direction with optional first value= combo of keywords
- linear-gradient () function path keywords/values:
1. to
2. top
3. bottom
4. left
5. right
10
Q
linear-gradient () function path (more precise control of direction):
A
- more precise control of direction With optional first value specified as an angle:
- 0deg = both lines of the angle lying equal with the x-axis
- < 0deg = the base arrow is equal with the x-axis, with the opposite arrow proceeding counterclockwise as the angle increases
- examples:
1. 45deg = -315deg
2. 90deg = -270deg
3. 180deg = -180deg
4. 359deg = -1deg
11
Q
radial-gradient ():
A
- gradient fill creation function
- blends from one color stop to another
- path spreads out from a center point
- default: begins at the element center and is circular
- radial-gradient () keywords/values:
1. ellipse (value specified along with length and position values) - Center point is specified by an optional first value combination of keywords as well as percentage values for the x-axis and the y-axis
- radial-gradient center point keyword/values:
1. closest-side
2. farthest-side
3. closest-corner
4. farthest-corner
5. at - Ex: closest-side at 60% 60%
12
Q
aspects of the repeating- functions:
A
- repeating-linear-gradient () ; repeating-radial-gradient () .
- accept the same values as their non-repeating counterparts
- automatically repeat the gradient after the final specified color stop
- with this in mind, you can specify the same color for the first and last color stops in a repeating gradient to avoid abrupt changes
13
Q
define an alternate: gradient color fills
A
- some browsers may not support gradients
- it’s useful to specify a default single color
14
Q
border-image
:
A
- will only be applied if a
border
has been specified - specifies an image source to the CSS url () function for border decoration
- the only required value
- will position the image within a specified border area, at each corner of a content box
- (all browsers that support
border-image
also support gradients: you can specify any type of gradient to decorate a border)
15
Q
border-image
(between the corner decoration):
A
- can specify additional values after, to decorate between the corners
- slices the image into nine sections like a tic tac toe board
- The first additional value can specify at which points to slice the image from the top right bottom and left edges (this produces the corner figures as well as the designs to fill the areas between the corner figures)
- a second additional value can explicitly specify, using keywords, how the between-the-corner designs are to be fabricated
- border-image between the corner decoration keywords:
1. stretch
2. Repeat
3. round