Reputation: 569
I have the following code:
Is it possible to have the second div to be in a fixed position and to have it float to the right?
Thanks,
Upvotes: 0
Views: 163
Reputation: 4180
Floating and positioning are two totally different models for arranging stuff on the screen, and they don't mix.
Try putting right: 10px
on the second div.
Upvotes: 1
Reputation: 5154
No, you can't have a single element at a fixed position and float at the same time because float means not having a fixed position.
Upvotes: 0