ASP.NET displaying fixed DIV on top of page - asp.net

I'm using VS2010,C# to develop my ASP.NET web app, I'm going to insert a fixed header on top of my pages so that my content area has a smaller width and these fixed DIVs are always on top of my page, in this way contents should start displaying from bottom of DIVs and not from screen top, I'm not going to use master pages, what are my options? how should I arrange my page?
thanks

Related

How to position bootstrap button on bottom of page unless user needs to scroll

I have a web page using bootstrap layout.
Currently built with Container>row>col.
I need to position a button at the bottom of every page that will stay at the bottom of the page, unless the user needs to scroll down to view. At that point the button needs to be at the end of the content.
I've tried multiple variations of Position: absolute, fixed, sticky, but in most cases, when the content of a page is short, the button will park itself at the bottom of the content, half way up the page. I need it to remain either at the bottom or buried under the scroll.
(Almost like a "bottom-max" value.)
The screen size is not known, as this is an app built for phones and tablets.

Making a Footer stay at the bottom and not overlap on zoom with dynamically generated height main content - Sticky footer doesn't work

I am working on a large website for a client and we have run into an issue with the previous designers structure. The footer does not stay at the bottom of the content when it is dynamically generated. I have hidden divs that are opened with links. These divs contain user comments. When both are opened the footer overlaps some of the content. When I zoom in the footer overlaps some of the main content. I've tried:
Ryan Fait's CSS and HTML5 Sticky Footers
How to keep footer at the bottom even with dynamic height website
CSS Reset Sticky Footer
Prevent footer from overlapping
All with no success. Is doing a full restructure the only option? I've also tried using JavaScript to make the footer stay at the bottom of the content. But once the document is loaded and the height changes, the footer doesn't move with content. Ideas? The code I have is very long - 4000 lines of css, 2000 lines of HTML. Should I post part?

Position of sidebar contents in relation to rest of page

On this page of my website: http://www.herefordequestrian.co.uk/ask-the-expert/
the right hand sidebar is not positioned top right of the page as it should be (and as it is on other pages).
How do I correct it?
Make your #container 789px wide or less.

Asp.net mvc Setting up dynamic Docking with Css

Im trying to setup my asp.net mvc page like the following image:
The header and bottom bar should always stay the same size and dock to the top and bottom of the page. In the middle is a infragistics jgrid that i want to always take up the center area of the page, so it should shrink and grow with the browser window.
So Im at a bit of a loss on how to dynamically change the div sizes and location when the browser window size changes.Any ideas/examples?
Thanks
http://jsfiddle.net/kdKCT/1/ i hope this will solve your problem. you can set the position property of header and footer to fixed so when your content scrolls while header and footer stay at the same place in your browser window.

Positioning div at the bottom of the page

I am developing a website where the menu it should be the end of the page. Besides the menu, another div with two images should also sit at the bottom of the page.
Follow the link to the complete source code of the page;
In red, the menu should be aligned at the bottom of the page, aligned to the center of div#leftcontent.
In the div#blue social-networks must be aligned at the bottom of the page, aligned to the center of the div#nav.
When I say bottom, I mean right at the end of the page.
If you mean not statically positioned, but just naturally occurring at the bottom of the page even when the sidebar content causes the page to exceed beyond the main content under which the bottom nav occurs, then you are out of luck using divs. This is one of CSS 2.1's major shortcomings.
You are left with two options:
Use a table for the basic layout
Use javascript to dynamically position the div based on the length of the sidebar
It's up to which you want to choose, but the javascript option will not work for people with javascript disabled, such as older mobile browsers.

Resources