tags:

views:

63

answers:

2

you probably notice that some web sites have feedback feature created with http://uservoice.com. it display's badge on left or right of your screen.

but, how is that badge positioned? it looks like its position depends on height of the browser...

can you help me how to create some sort of badge like this, with functionality to redirect me to the some other url.

tnx in adv!

+4  A: 

It uses position: fixed on the a tag. It is using a top: 45% to get it to "move" with the window height.

Scott
no, it's not fixed, tryed that before. it looks like it depends on browser's height. jquery maybe?
... and no link to Firebug to save him/her the trouble of writing next time?
Alexander Gyoshev
@user198003: http://www.jsfiddle.net/xxdFS/
Matt
I was just getting to the firebug link http://getfirebug.com/
Scott
@user198003-Yes, it is 'fixed', with the top at 45%.
Scott
+1  A: 

Heres a cool example of css and JS for floating a link or menu!

JTricks Example!

Heres another example from JTricks thats more like what your looking for (fixedmenu not floating)

Another example!! =)

(shows legacy browser compatibility)

jumpdart