473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Header and footer div's move when window is minimized

Biggaz1979
Hey guys,
I am quite new to web development and am self taught, I have an issue with a website I am developing for my college. The header and footer wrap tags I have created seem to move to the left when the window is minimized, I'm guessing this is something to do with the main div's in the center not moving to allow for the minimization? Does anyone have a solution? The site is in my test directory on my server here

I would appreciate any help please :)
Feb 17 '12 #1
11 5039
drhowarddrfine
7,435 Expert 4TB
I don't see it. I see the whole thing moving to the left, which it should cause it's actually centering itself. Which browser?
Feb 17 '12 #2
@drhowarddrfine
Sorry yeah that's what I mean, the header and footer move to the left and leaves a gap at the right side when minimized in all browsers.
Feb 17 '12 #3
drhowarddrfine
7,435 Expert 4TB
Don't see the problem.
Feb 18 '12 #4
If you minimize the window, then scroll either to the top or the bottom, then to the right, you can see the header and footer tags wrap end about 300px from the right side of the header tag.

Feb 18 '12 #5
drhowarddrfine
7,435 Expert 4TB
Cause there's no room for them. Sorry, but leaving for Chicago right now. Won't be back till Sunday night.
Feb 18 '12 #6
I think I have solved this now, but for some reason the site seems to be different in different browsers, it only displays correctly in Chrome and Safari for some reason, anyone have any ideas? Or shall I open a new thread for this?
Feb 23 '12 #7
drhowarddrfine
7,435 Expert 4TB
I had forgotten about this. Not that I'm any more free but please post your solution that it might help others.

Yes, start another thread.
Feb 23 '12 #8
Okay, My solution was quite simple really, I just removed the background images from my header and footer container tags, then created a background image with gradient and set it to the page height but have it set to repeat-y for wider browsers, now all I need to do is increase the height if my pages gets taller with time, unless I find a way for it to move with the flow of the page. I am still learning so I may have done this wrong, but it will work for now.
Feb 23 '12 #9
drhowarddrfine
7,435 Expert 4TB
Validate your html for that list of errors.
Feb 23 '12 #10
The only errors I have are from my flash files, the last time I checked anyway lol, I will be correcting the embed issues before the site goes live properly.
Feb 23 '12 #11
if you are floating one or more <div> than after completing floating use <div style="clear:both"></div>

like this :::

Expand|Select|Wrap|Line Numbers
  1. <div class="header">
  2.  
  3. </div>
  4. <div style="clear:both"></div>
  5. <div class="content">
  6.  
  7. </div>
  8. <div style="clear:both"></div>
  9. <div class="footer">
  10.  
  11. </div>
Apr 16 '12 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
2
by: Jurjen de Groot | last post by:
When printing my webpage, IE inserts a header (name of the webform + pageNr ) and a footer (URL + date) Does anyone know of a way to supress this behaviour, I'd like to print a letter / invoice...
0
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
5
by: fjanon | last post by:
Is there a way to remove the default footer/header from the printed page when printing a page from HTML/Javascript in IE 6? I want to use letterhead paper and I have to remove manually the...
4
by: stevesj | last post by:
I have a web form that generates 4 or 5 printed pages of html and a few images. I know how to insert CSS page breaks. Is there a way to calculate on the server where the page will break - like...
19
by: Steve | last post by:
Hi there, I'm having a problem with a webpage where hoving over the top navigation links causes my footer to jump up to the centre of the page! It only happens with IE7, and works fine with the...
5
by: Peter Morris [Capable Objects] | last post by:
Hi all How can I remove the header/footer on the printout I get when I do WebBrowser.Print? I've got a product demo first thing in the morning, and it would look much better without it! ...
1
by: balurajeev | last post by:
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...
3
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all...
8
by: Adam Cochran | last post by:
I am currently working on a site for a client which can be found on my dev site http://www.adamcochran.info/I-Gard/ The problem I am having is I have placed the Images using absolute div's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.