views:

21

answers:

3

Hi guys,

I am trying to place my div with some notes in the bottom right position of the screen which will be displayed all time.

I used following css for it:

#foo
{
     position: fixed;
     bottom: 0;
     right: 0;
}

It works fine with Chrome 3 and Firefox 3.6 but IE8 sucks...

what can be a suitable solution for it?

A: 

Try making its parent position:relative

Michael Robinson
m afraid it didn't worked for me... i think its not appropriate here
KoolKabin
A: 

Try this:

#foo
{
    position: absolute;
    top: 100%;
    right: 0%;
}
Cipi
I think that will make the top edge below the bottom edge of the parent element.
Michael Robinson
No. 100% is screen.height - element.height.
Cipi
+1  A: 

This snippet works in IE7 at least

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Test</title>
<style>
  #foo {
    position: fixed;
    bottom: 0;
    right: 0;
  }
</style>
</head>
<body>
  <div id="foo">Hello World</div>
</body>
</html>
sewa
thnx swa it worked...but what to do with IE6
KoolKabin