PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the content appears as shown in…

You have the following code:

You need to ensure that the content appears as shown in the following exhibit:

Which display attribute should you use for the red div?

PrepAway - Latest Free Exam Questions & Answers

A.
grid

B.
inline

C.
block

D.
flex

Explanation:
https://www.w3schools.com/cssref/pr_class_display.asp

5 Comments on “You need to ensure that the content appears as shown in…

  1. CasiProgramoMEXAPOWA says:

    the correct answer is D,

    check the following code:
    //!DOCTYPE html>
    //html>
    //head>
    //meta charset=”utf-8″>
    //title>///title>
    ///head>
    //body>
    //div style=”background-color:red;border:dashed; display: flex;”>
    //div style=”background-color:yellow;”>My yellow///div>
    //div style=”background-color:green;”>My green///div>
    ///div>
    ///body>
    ///html>




    14



    0

Leave a Reply