Click here to Skip to main content
16,005,826 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have a panel in my webform.
i want to move the panel with the scrolling of page.
if user scroll the page vertically, then i want to move the panel
with the page scrool.
How can i do this?
Posted

1 solution

Hi,

try this code for your requirement .

HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language ="javascript" >
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>

      <div id="scrollingdiv" style=" position :fixed; left :0px; top:150px;">
       This part is scrolled with scrolling page<br />
        This part is scrolled with scrolling page<br />
         This part is scrolled with scrolling page<br />
          This part is scrolled with scrolling page<br />
           This part is scrolled with scrolling page<br />

      </div>
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
      <br /><br /><br /><br /><br /><br /><br /><br />
    </div>
    </form>
</body>
</html>

panel is nothig but div right.Here you can set where your content floats along with page scrolling

All the best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900