IES: CSS-deck 13 Flashcards
1
Q
::marker
A
- pseudo-element
- This selects the markers of list items
2
Q
content
A
- used with the
::before
and::after
pseudo-elements, to insert generated content. ah - values:
1. normal
2. none
3. counter
4. attr(attribute)
5. string (must be enclosed within quote marks (will not be included in the inserted text-spaces will be preserved))
6. open-quote
7. close-quote
8. no-open-quote
9. no-close-quote
10. url(url)
11. initial
12. inherit - can be used to specify non-textual content
3
Q
“open-quote”
A
-
content
keyword - explicitly insert quotes-before specified text
4
Q
“close-quote”
A
-
content
keyword - explicitly insert quotes- after specified text
5
Q
“url (url or specified path to a resource)”
you are L
A
- content keyword/function
- Function specifying non-textual content by stating the path to a resource within the parentheses.
6
Q
“attr()”
A
-
content
keyword/function - Can be used to specify the name of an attribute
- assigned value should be inserted as content
7
Q
multiple items specified to content
A
- specified as a space-separated list
- use any
content
value
8
Q
counter()
A
-
::before
keyword/function - Inserts generated content to automatically number Instances of an element in an HTML doc
- To create this property:
1. Specifies the chosen name within the ().
2. specifies the incremental value
3. The chosen name and the incremental value are specified tocounter-increment
as a space-separated list.
4. Counter will begin from zero (by default)
5. option: increment is omitted-a value of 1 for the increment is assumed starting from 0 (this is all by default)
6. Once a counter has been created, it can be inserted before a selected element as generated content by a CSS pseudo-element.
9
Q
counter-increment
A
- necessary property for creation of a counter using
::before
1. specify a chosen counter name
2. specify an incremental value
3. specify these as a space-separated list - Ex. counter-increment: num .1; (counter titled “num” with an increment of .1 (starting from 0 by default)) ; counter-increment; num; (counter titled “num” (with an increment of 1 and starting from 0 by default))
10
Q
counter-reset
A
- make
counter
resume counting from a different number
1. specify thecounter
’s name
2. specify the integer value from which to count
3. specify these to thecounter
offspring property as a space-separated list - Ex.
counter-reset
: num 6; (chosen counter titled “num” (with an increment of 1 by default) starting from 6)
11
Q
table-layout
A
- property of the
table
element - CSS alternative to setting a
table
’s layout - values in this determine the table column, rows, and cells sizes
- potentially faster than HTML code: may allow the browser to compute the layout without examining the entire table content.
12
Q
“fixed”
A
- table-layout keyword/value
- specifies a certain layout to the
table-layout
of thetable
- the browser need only consider the
width
of the table and thewidth
of the columns and cells on the first row.
13
Q
considerations of a fixed
table
A
- Overall table width= whichever is greater: it’s specified width or the sum of its column widths
- If specified, a column width is set by its value
- If unspecified, a column width is set by a specified cell width
- If column and cell are unspecified, the columns’ widths are sized equally within the table width
14
Q
specify the first column width and a fixed
layout rule:
A
- create a first column of custom width
- creates all columns will have equal width
15
Q
` table-layout`: default value
A
- “auto”
- A style rule can explicitly specify the default value
- The browser computes the column widths according to their content