473,382 Members | 1,775 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,382 software developers and data experts.

Creating a footer

Hi everyone,

Me again, been a while since I've been here, but I'm back again needing help with a simple thing.

I've searched for help on creating a footer, but all the help I've found, was absolutely nothing like what I was looking for.

Could anyone help me with the very simple issue of creating a footer?

I'm trying to create it on my index page (and all of the others, once I figure out HOW :) )
Here is the page:
http://workmenforChrist.org

I thought I knew, but I guess I don't. The code I tried last, to style the footer (and by footer I mean both copywrite info, and the actual footer. The copywrite will be on my sidebar, and the footer on the regular part of the page, if anyone understand that) is this:
[HTML]
/*Bottom container for copywrite and footer*/
.bottom {
position: normal;
bottom: 0px;
overflow: auto;
}

/*Copywrite info*/
.copywrite {
font-size: 75%;
font-family: Arial;
width: 155px;
float: left;
}

/*Footer*/
.footer {
font-weight: bold;
font-size: 50%;
font-family: Arial;
min-width: 600px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
padding: 31px;
}[/HTML]

I want both footer and copywrite info to be at the bottom, so I put them in box of their own. But of course, that doesn't solve the problem of my footer ignoring my page and going to the top instead of bottom.

I really appreciate the help in this simple matter, and appologize for my ignorance. Also, I know I have a few problems with my page, I'm currently updating and fixing things so they'll be fixed after a while, but right now I'm just focusing on the big chunks that are more needed.

Thanks again!

~Michael
Mar 8 '08 #1
11 2398
drhowarddrfine
7,435 Expert 4TB
Hello, Michael. I remember you.

There is no such thing as 'position:normal'. Do position:absolute instead.

If you don't see the footer after that, trying 'margin-bottom:-2em' because it might slip below the bottom of the browser. (Or is it margin-top?).

Two html errors:
line 69 column 5 - Error: start tag for "LI" omitted, but its declaration does not permit this
line 107 column 3 - Error: end tag for element "P" which is not open
Mar 8 '08 #2
Hello, Michael. I remember you.

There is no such thing as 'position:normal'. Do position:absolute instead.

If you don't see the footer after that, trying 'margin-bottom:-2em' because it might slip below the bottom of the browser. (Or is it margin-top?).

Two html errors:
line 69 column 5 - Error: start tag for "LI" omitted, but its declaration does not permit this
line 107 column 3 - Error: end tag for element "P" which is not open
Hi drhowarddrfine! Glad to have your help with this, you've always been a great help :)

Wow, I don't know where I had heard of the position:normal. I thought I heard something about how it puts it in the normal flow of the page (first comes first, second and so forth). Thanks for letting me know it doesn't exist!

As for the footer, I tried position: absolute, and all that does is put it on the top of the page, on top of the header.

Adding 'margin-bottom: -2em' does put it on the bottom, but only on the bottom of the viewable area and not the bottom of the actual page.

Putting a DIV for the entire page, so that it contains EVERYTHING, won't help in some way, will it?
Mar 8 '08 #3
drhowarddrfine
7,435 Expert 4TB
Put it at the top? Did you leave in 'bottom:0'?
Mar 8 '08 #4
Put it at the top? Did you leave in 'bottom:0'?
Hmm . . . yes, though I had 'bottom:0px' which just to make sure, I removed the 'px' part and tested it. It's still now going to the bottom but only the bottom of the viewable space and not the actual bottom of the page.

I uploaded a test page to help see what I see. Here's the page if it helps:
http://workmenforChrist.org/testindex.html
Mar 8 '08 #5
GloStix
54
This is what I do, Put the footer div inside the container div, then put #footerorwtvthenameis {
float:inherit;
}

That keeps it at the bottom of the page.

I don't know if that's what you're looking for or not.
Mar 9 '08 #6
drhowarddrfine
7,435 Expert 4TB
The problem lies in using position:absolute and, possibly, floats. You have to keep in mind that both remove an element from the normal flow and allow them to float up to their parent container. As an example, remove position:absolute from '.bottom' and see what happens.

Also, there is no such thing as position:normal.

That's all I have time for right now.
Mar 9 '08 #7
The problem lies in using position:absolute and, possibly, floats. You have to keep in mind that both remove an element from the normal flow and allow them to float up to their parent container. As an example, remove position:absolute from '.bottom' and see what happens.

Also, there is no such thing as position:normal.

That's all I have time for right now.
I was worried about that . . . I have position:absolute for the main part of my page, in order to position it correctly off the sidebar menu. So that may be causing the '.bottom' to go to the top instead of AFTER the main part. Right?
Mar 10 '08 #8
drhowarddrfine
7,435 Expert 4TB
Yes. .
Mar 10 '08 #9
Yes. .
Alrighty, back again. Sorry for the delay...

I always knew absolute would pose a problem somewhere along the line . . .

Okay, so, does putting 'position: relative' in place of absolute (with the 'left:190px' to keep it off the sidebar) for my main-page div . . . would that cause any problems. So far it doesn't appear to cause any issues, but are there any that are known to happen in a particular situation?

EDITED TO ADD:

A new problem seems to be occuring. Though I still want to make sure the question about position:relative is answered . . . I have the problem of my footer going to the next line when the window is resized. This was a problem with my two index boxes that we dealt with a while back here, but adding 'overflow:auto' doesn't work in this case.

I can't have the copyright resize, but the footer can resize accordingly . . . But I would think it should work. The only thing I have different from the index box, is pretty much the resizing in percent . . .
Mar 12 '08 #10
I hope this isn't wrong to post again (if it counts as double-posting), but I've a different problem.

To fix my above problem I stopped floating my footer and just set it to relative and left:190 like the main part of the page. I don't know if that will pose problem, but it seems to work right.

However I have a different problem and I wanted to post it in this thread instead of starting a whole new one, because it relates to my footer.

If anyone can go to the test page above, they can see how my footer is positioned how I want it, with a margin on the top to separate it from the rest of the main part of the page, and the "left:190" keeping it off the sidebar.

However, I can't seem to get my copyright to go to the bottom of the container div. It stays on the top left. I need it to be on the bottom left!

I've tried all sorts of things. I have to keep it floating left because otherwise my footer goes to the next line, when I pretty much need both footer and copyright on one line. Putting "bottom:0" doesn't work either. Nor do any "vertical-align" properties work.

There has to be a way to do this, does anyone have a solution? I greatly appreciate the help! (I have the borders on, to better see what's going on with the positioning of the divs. They're only there to temporarily help.) Thank you again,

EDITED:
Test page, to make it easier:
http://workmenforChrist.org/testindex.html
AND . . . In IE the "left:190px;" causes it to go left from the copyright div instead of the page itself! Is there a fix to this?

~Michael
Mar 13 '08 #11
I Deeply apologize . . . I couldn't seem to edit my last post.

But, the problems I was having seem to be solved! I tested it on IE, FF, and Opera and they seemed to work correctly, so . . .

And to get rid of that float bug with IE, I set the "margin-left: 190;" instead, and it worked. I don't think that's the official way to solve that bug, but I found none and this one seems to work.

Then to deal with the issue of having my copyright go to the bottom of the containing div, I actually had to remove the "float:left" and instead changed the container div to "position: relative;" and then the copyright div to "position:absolute" and "bottom:0" and "left:0". The problem with absolute before, was because of that container div . . .

Then, I also had to create another container div, for both the sidebar AND main part of the page, excluding the copyright/footer divs. This helped so that if the sidebar menu were longer than the main part of the page, the copyright/footer would stay after the sidebar menu and not skip up to the bottom of the main page. I hope this is not getting excessive with these container divs, because I don't know of any other way!

I'm explaining all this, so that if someone happens along the thread looking for a solution to the same problem, they'll know what the end result was.

Also in the case that one of you more knowledgeable ones might see some unforeseen problems this may cause, and offer a better solution.

Thank you again, everyone, for the help, and God Bless!

~Michael
Mar 14 '08 #12

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

Similar topics

0
by: David Rose | last post by:
Hello I know nothing of XSL but was wondering if it was possible to do the following: Given an XML template: <template> <register TagPrefix="whatever" TagName="Template"...
0
by: David B | last post by:
Bare with me this is my first post. Objective: To dynamically create repeaters in a WebForm based on sets of data. Problem: When I attempt to create any Repeater from C# I get a big fat white...
0
by: Mike P | last post by:
Can anybody tell me what is wrong with this code? The main error I seem to be getting is where I am creating the LinkButton called deleteButton. public void dgLog_ItemDataBound(object sender,...
2
by: jen_designs | last post by:
I am trying to create a template in dot net. All the articles I have read on the net are rather confusing. I need a simple solution to create a header and a footer on each page. Can someone...
9
by: hazz | last post by:
I want to display 'n' records for a table-driven data entry page. The first column should be readonly and the 2nd column, a checkbox WRITABLE (NOT READONLY). I can't use the gridview because it...
5
eragon
by: eragon | last post by:
I wrote this function to create a new file when the user posts in my forums, and its not creating a new file, can you help me? this script is not copyrighted as the last one. function...
13
Death Slaught
by: Death Slaught | last post by:
I have my entire page in my "main" div. div.main { width: 100%; height: 100%; border: 1px solid gray; } on the left of the page I have a banner.
3
by: susanhouser | last post by:
I am having some difficulty placing a footer on my web page. I want the footer to automatically move down as more content is added. I did this by creating a relative box for the content and placing...
4
by: DigitalDrew | last post by:
Just wanted to say hello to all the other newbies, and ask my first question: Your help is extremely needed, and I would appreciate anyone who can help. I am trying to make a website with SSI...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.