Listed below are a few CSS questions for discussing CSS in an interview setting. Each answer should be a short sentence and be answerable over the phone. The question format is more to spur conversation rather than to define merit.
What is difference between the CSS property values inherit
and initial
? What is an example of when this is signicant?
the value
inherit
takes the value of it's parent the valueinitial
takes the browsers initial value of that html elementinherit
could be used for links (<a>
) within a title element (<h1—6>
) to inherit colors, etcinitial
could be used to override a normalized style for optimal browser specific css.
* A clear-fix is used to contain content within a parent element
set the value of
overflow
tohidden
If access to psuedo elements:after, :before,
is needed
By using a number relative (ie
1
) to afont-size
,line-height
remain relative to the font rather than defining display. Combining the 2, font spacing and display spacing can be problematic.
CSS frameworks provide support from a large community Vanilla CSS defines styling relative to a specific product
CSS frameworks can lead to bloat that exists within the HTML Vanilla CSS are subject to browser updates and changes without support from a large community