views:

26

answers:

2

if you look at this http://blog.zopim.com/ site, you will see on the bottom side a chatting service,, i actually dont want the chatting service,, i just want the div to be up on the top of all the stuff present at my site.. just like this one..

how can i have that,,, if any samples please share it.. it wud be quite helpful..

thanks...

A: 

You would apply "position: fixed" to the div.

Google "css positioning" to learn the particulars.

Bryan Downing
Thankyou.. for the solution
+1  A: 

As Bryan told you, use position: fixed. There are a few particularities you have to know about the position fixed. You have to give you element a position relative to the browser window (use top, right, bottom or left). If you have other divs that are already in position fixed, you maybe gonna use the z-index. Check this:

html:

<div id="floating">hurra i amm floating</div>

css:

div#floating {
   position: fixed;
   bottom:0;
   right:0; 
   width: 100px;
   height: 100px;
   background: pink;
}
meo
Thankyou.. for the solution.. it worked!