Hello everyone, I hope you're doing well.
I recently took a test and unfortunately got this question wrong.
Imagine a web page with a width of 1000px. What is the exact horizontal (from the left) position of the div element with id "inner_div"?
<!DOCTYPE html>
<html>
<head>
<title>Div elements</title>
<style>
#first_div{
width:500px;
float:right;
}
#second_div{
width:500px;
float:right;
}
#inner_div{
width:100px;
float:right;
}
</style>
</head>
<body>
<div id="first_div">
First div element
</div>
<div id="second_div">
<div id="inner_div">
Find my precise location.
</div>
</div>
</body>
</html>
In my opinion, the answer should fall between 500px to 600px. I would greatly appreciate it if you could verify this or correct me if I'm mistaken.