Always Visible control in asp.net
The best and simplest way to create an always on top is to use <DIV>. I was in need of displaying a Live Support icon in my website. I tried to use Ajax AlwaysVisibleControl and it was not suitable for me. In order to increase the performance of my site I used <div> in my page with the following code
Aspx Page.
<div id=”live-help”>
— add your content here
</div>
To display the content of above <div> always visible and on top, use the following CSS code
# live-help {
position: fixed;
z-index: 9000;
top: 40%;
right: 0;
width:43px;
height: 48px;
-webkit-border-top-right-radius: 6px ;
-webkit-border-bottom-right-radius: 6px ;
-moz-border-radius: 0px 6px 6px 0;
border-radius: 0px 6px 6px 0;
border-top: 1px solid #282727;
border-right: 1px solid #282727;
border-bottom: 1px solid #282727;
overflow: hidden;
cursor: pointer;
}
Enjoy and happy coding…
Leave a Reply