allow us to modify our styles depending on parameters like width of the window or device type.
view options
media queries
classes
selectors - Answers media queries
Which CSS layout method is best suited to achieve this layout? - Answers flex
Which css grid property establishes a 3 equal column layout?
columns: .33 .33 .33
row: 3 3 3
grid-template-columns: 1fr 1fr 1fr
child: 1em 1em 1em - Answers grid-template-columns: 1fr 1fr 1fr
Website colors can be specified in
______
format as a 6 digit
______
number - Answers RGB
hex
The following css:
.special {
color: green;
margin: 0 0 0 12px;
}
,Makes all paragraphs green with 12px margin bottom
Makes paragraphs green with an optional 12px margin.
Makes class special elements green with 12px left margin.
Makes id special elements green with 12 px margin bottom - Answers Makes class special elements
green with 12px left margin.
Which of the following CSS selects all links that are nested inside a list item?
ul .a {...}
a:hover ul.li {...}
a:link list-item {...}
li a {....} - Answers li a {....}
In CSS which selectors allow you to target multiple elements on the page?
ids
classes
RFDs
properties - Answers classes
The CSS Box Model consists of the following elements in (inside-out) order:
padding
margin
border
content - Answers __2__padding
__4__margin
, __3__border
__1__content
Which of the following are block elements?
links
images
paragraphs
headers
lists - Answers paragraphs
headers
lists
To horizontally center block elements use:
padding-left-right: auto
padding: auto
margin: 0 auto
block: center - Answers margin: 0 auto
Which of the following are css selectors?
element
class
tag
id - Answers id
element
class