Old 04-16-2008   #1 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 1

Problem with fixed footer div

hi all,

I am working on aspx page which is having three 'div' tags.
First one is header div which is having fixed positioning and left and top
position '0px'.Also the div is having 50px height and 1060px width .
Second div is a footer div which is fixed at the bottom of the page.
Third div is the content div which contains the content text.

here is how the code follows:
<body>
<form id="form1" runat="server">
<div>
<div id="header" > <h3>
References and Information Sources</h3>
</div>
<div id="content">
<------content text------>
</div>
<div id="footer">
Modifications:
16 Feb 2000: Inclusion of multi-layer architectures and net-centric systems.
</div>
</div>
</form>
</body>


I have set css for header div and footer div in the folowing way:

#header
{
position:fixed;
left:0px;
top:0px;
height: 50px;
width: 1060px;
text-align: center;
padding: 5px;
/*overflow: scroll;*/

font: 0.75em verdana;
background-color:Gray;
color:Red;

}

#footer
{
position:fixed;
left:0px;
top:530px;
height: 50px;
width: 1060px;
text-align:center;
padding: 5px;
/*overflow: scroll;*/
font: 0.75em verdana;
background-color:Gray;
color:Red;
}

now i have a problem when i restore the window after maximizing my footer just vanishes and again it comes back when maximized.
here i want the header and footer positions to be fixed ,whereas in my second div tag which contains my content should get adjusted when the screen is restored.

Does anyone has any accurate suggestions please.......

Regards
Balu
balurajeev is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2008   #2 (permalink)
Be Unique. Be Heard.
 
Jacorre's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 476

To be honest, I don't think you need any positioning for this. If you remove the position:fixed as well as the top and left settings the divs should show one after the other. It would also help to provide an example page to better understand your layout since every layout is different and there may be other suggestions we can give based on what we see in the design.
__________________

Jacorre Studios Blog
Jacorre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Background.. ecntrc HTML / PHP / ASP / JS 1 12-19-2005 08:50 PM
Downloads Section Fixed! Man1c M0g Announcements 0 10-09-2005 03:49 PM
Max Post Size Error Fixed Man1c M0g BioRUST Specific Threads 2 07-27-2004 12:44 AM
footer and headers in php supafly HTML / PHP / ASP / JS 8 06-14-2004 09:40 PM
Server fixed (we hope)! Man1c M0g Announcements 5 05-03-2004 02:38 PM


All times are GMT +1. The time now is 09:55 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT