Computer scienceFrontendCSSBasic propertiesPositioning

Images and Text

Application

Report a typo

Add clearfix to put the rectangle into the dotted border.

The purple rectangle

To avoid having problems with checking the answer by the verification system, it is better to use the clearfix proposed in the theoretical part.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div id="container">
<div id="rectangle"></div>
</div>
</body>
</html>
Completed 1 of 2
The rectangle is inside the border.
The code is valid.
___

Create a free account to access the full topic