PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

HOTSPOT
You are creating a custom CSS3 style.
You have the following requirements to complete the style:
Box1 has a red outline.
Box1 contains box2, and box2 must remain inside box1
Box2 must have a green to black gradient.
Box2 must be surrounded by white space.
The style resembles the following diagram:

You need to add the CSS3 code to the styles.
How should you complete the relevant code? (To answer, select the appropriate code segment in
each drop-down list in the answer area.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

2 Comments on “How should you complete the relevant code?

  1. rik says:

    This is another question that doesn’t seem to make sense (to me).
    With box2 set to ‘position:absolute’ (and no position value for box1), the actual positioning of box 2 becomes independant of the positioning of box1 (box2 is removed from ‘normal flow’). Box2 should be set to either ‘position:static’ (the default) or ‘position:relative’…




    0



    0

Leave a Reply