3 Things (Almost) No One Knows About CSS

84% here also.

Some of the questions were a little ambiguous and I wasn’t quite sure what was being asked (although I did rush through it a bit).

Fun quiz though :smile:

I could really use some ideas for more tricky CSS questions. Post ’em in the comments!

CSS:

div {
	background:red;
}
div div {
	background:blue;
	margin-top:20px;
	height:40px;
}

Html:

<div>
		<div>test</div>
</div>

a) The outer div will show red for 20px and the inner div will be 20px from the top and show as blue

b) The inner and outer divs will both be blue and the inner div will be 20px from the top of the outer div making the outer div 60px tall

c) The inner and outer divs will both be red and 60px tall

d) The outer div will be completely covered by the inner div so only blue will be seen. They will have a combined height of 40px.