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?

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



Leave a Reply 4

Your email address will not be published. Required fields are marked *


CasiProgramoMEXAPOWA

CasiProgramoMEXAPOWA

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>