Property left does not work in position fixed

2

I'm trying to make a div stay fixed in the footer of the page, in the right corner, but not leaning at the bottom of the page, so I used, as usual:

width:50px;
height:100px;
background:#fff;
position:absolute;
bottom:0;
left:10;

But the div did not receive ownership. I went in to inspect element in the browser and under the "left: 10;" is an "Invalid property value" warning. Can anyone tell me anything about this?

    
asked by anonymous 02.12.2015 / 19:33

2 answers

1

In the right corner, not leaning.

width:50px;
height:100px;
background:#fff;
position:absolute;
bottom:0;
right:10px;
    
02.12.2015 / 19:40
0

It works as long as the parent element is with position: relative;

    
02.12.2015 / 19:43