Why is the inner div not closer to the box song it right is 0px | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is the inner div not closer to the box song it right is 0px

<!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="exes.css"> </head> <body> <div class="relative"> this is the world </div> <div class="absolute"> this is the world </div> </body> </html> div.relative {   position: relative;   width: 400px;   height: 200px;   border: 3px solid #73AD21; }  div.absolute {   position: absolute;   top: 80px;   right: 0;   width: 200px;   height: 100px;   border: 3px solid #73AD21; } Pls apply this code to understand the descriptions of my question

30th Jun 2020, 1:45 AM
Oriakhi Godwin
1 Answer
0
Pls helpe answer the question
30th Jun 2020, 2:47 AM
Oriakhi Godwin