Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am having size issue in Asp.net website.I have created a website but now facing a problem.
What I want is that the size of the page that is displayed remains constant for a user and must be equal to the size of their browser's available display area and the content being visible by scrolling the div.

Sort of like the header and footer remain at the same position and the content inside it is scrollable.

I really don't know how to achieve this.


Current situation-
My website pages are smaller in size than browser screen and complete page gets scrollable.


Any help on the matter is highly appreciated.
Posted

1 solution

It's about page design. You have to have defined header, footer and body. Then put a div in body that has scroll enabled. Put all the contents you need to show in this div. Thus, scroll will be for div (only body) and header-footer will not be the part of it and be always there. Try out.
 
Share this answer
 
Comments
vicvis 24-Feb-13 13:29pm    
Great Thanks.
But does master page has any role in this??
Because my master page is not scrollable.
Sandeep Mewara 25-Feb-13 2:11am    
Why not? You can have your master page designed such that proper header-body-footer is there without scroll of expected height. Now, in body content, put div and all content in that div that will just show scroll to that div.

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