Reputation: 12173
Why are the boxes and images moving on browser resize in this video?
Here is my code:
style="width: 98pt; position: fixed; left: 112pt; bottom: 175pt"
Upvotes: 1
Views: 3972
Reputation: 21904
Its design is flexible.
According to this other answer:
If you want to learn more about this, I recommend this book:
Responsive Web Design by Ethan Marcotte.
Upvotes: 3
Reputation: 5245
Because they are attached to the bottom of its container (the body tag maybe?)
Use "top:###pt" instead of "bottom: 175pt".
I think it would be better to specify its height instead.
<body>
<div style="position:fixed; top: 50px; left: 50px; width: 100px; height: 100px;">content</div>
</body>
Upvotes: 0