-5

I need to have a div, docked to right, with fixed horizontal size. I dont know how to set a correct position for it. his left coord must be smth SCREENWIDTH - 500. I see only left positioning with position absolute. This is really not what i want.

Alexander
  • 431
  • 2
  • 5
  • 19

1 Answers1

1

try this:

use right:0

.right {
    position:fixed;
    right:0;
    width:200px;
    height:200px;
    background:black;
}

jsfiddle here

wpdaniel
  • 714
  • 8
  • 25