Floating chat on the page

Asked

Viewed 304 times

1

Basically, I would like a floating chat on the page like this:

The code for the chatbox is:

<script style="width: 170px;height: 276px;" src="//st.chatango.com/js/gz/emb.js" async="" data-cfasync="false" id="cid0020000093941551878">{"handle":"bloodypalacerpg","arch":"js","styles":{"a":"CC0000","b":100,"c":"FFFFFF","d":"FFFFFF","k":"CC0000","l":"CC0000","m":"CC0000","n":"FFFFFF","p":"11.25","q":"CC0000","r":100,"usricon":1.3,"cnrs":"0.89","fwtickm":1}}</script>

As I wish:

inserir a descrição da imagem aqui

Thanks in advance.

  • It is fixed or follows the scroll? can drag or not?

2 answers

0

Use position: absolute.

#chat{
   width: 300px;
   height: 300px;
   position: absolute;
   right: 20px;
   bottom: 20px;
}

0


You can solve this using CSS. With position:fixed; So it always gets visible, even rolling the screen.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.