Move the left and top edge of the <div> element by 50 pixels. Specify the z-index property with a value of 1 and the position property with a value so that the result of the code is approximately similar to the image below:
Positioning properties
As in the image
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Border</title>
</head>
<body>
<div></div>
<p>Positioning Properties</p>
</body>
</html>
Completed 1 of 5
The <div> element has the property "position" with right value
The left corner of the <div> element is shifted by 50 pixels
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.