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?
A.
grid
B.
inline
C.
block
D.
flex
Explanation:
https://www.w3schools.com/cssref/pr_class_display.asp
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>
https://www.w3schools.com/cssref/pr_class_display.asp
flex
D: flex