473,614 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PLEASE help me understand footer positioning?

I've been toying with this for many weeks now and it still doesn't
work as desired;

I'm trying to develop with css compliance.

In general my pages are within a container. Withing the container
there is a header, a left column menu/nav box, a right box which
contains the various pages content; and at the bottome of ALL pages is
the close of the container section followed by a footer.

The footer is defined as:

/*************** *************** *************** *************** ****/
/* Common Page Footing Declarations */
/*************** *************** *************** *************** ****/
..footing {
margin-top: 3em;
border-top: 1px solid #666;
padding-top: 1em;
font-size: x-small;
text-align: center;
width: 100%;
}

On MOST of my pages this seems to place a thin line at the bottom of
the page followed by a little space followed by my general footing
information, etc.

However, on several pages that can get to lengths that exceed the
initial viewable screen, all the page's content is shown (scrolling
required, of course) but the thin line of the footer appears through
the middle of the content but yet the general footing information
appears down at the bottom where it should be.

My output code is as follows:

print "
<!-- End of Main Page Content Area -->
</div>
<!-- End of Container Area -->
</div>
<!-- Page Footing Section -->
<div class=\"footing \">
Copyright &copy; 2006&nbsp;-&nbsp;blah blah
<img src=\"pix/pr1_logo.jpg\" border=\"0\" height=\"25\" width=\"25\"
align=\"middle\ " alt=\"blah_blah logo\" />
Blah, LLC - all rights reserved
<!-- End of Page Footing Section -->
</div>
</body>
</html>
";
Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?

I can find nothing in all my CSS books that describe this condition
nor can I find anything that disputes exactly how I'm doing this.

I my output requires changing, so be it. I want to learn how to
control this so it does what I expect it to do and I will change it if
needed.

Please someone, explain?

Thanks,

Bob
Mar 13 '06 #1
7 1703
bobmct <r.********@fdc x.net> wrote:
Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?


Post a url, and mention which browser you are seeing this with.

--
Spartanicus
Mar 14 '06 #2
On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
<in*****@invali d.invalid> wrote:
bobmct <r.********@fdc x.net> wrote:
Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?


Post a url, and mention which browser you are seeing this with.

OK - as requested:

www.fdcx.net/test.html

I've created a sample page and the css is embedded for clarity. My
browser is Firefox 1.5.0.1 and with IE the page appears to display
correctly (that's a switch!)

I am trying to generate a common footer that appears at the bottom of
ANY page(s). If its a short page the footing should appear at or near
the physical browser window. However, if its a long page the footing
should appear at the end of the page content. In FF the footing text
is appearing properly but the top-border is appearing either in the
middle of the page or right up near the top. I MUST be missing
something to accomplish this.

THanks to anyone who can recommend how to correct and solve my
problem.

Bob

Mar 14 '06 #3
bobmct wrote:
On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
<in*****@invali d.invalid> wrote:
bobmct <r.********@fdc x.net> wrote:
Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?


Post a url, and mention which browser you are seeing this with.

OK - as requested:

www.fdcx.net/test.html

I've created a sample page and the css is embedded for clarity. My
browser is Firefox 1.5.0.1 and with IE the page appears to display
correctly (that's a switch!)

I am trying to generate a common footer that appears at the bottom of
ANY page(s). If its a short page the footing should appear at or near
the physical browser window. However, if its a long page the footing
should appear at the end of the page content. In FF the footing text
is appearing properly but the top-border is appearing either in the
middle of the page or right up near the top. I MUST be missing
something to accomplish this.

THanks to anyone who can recommend how to correct and solve my
problem.

Bob


Bob,

It is actually worse than that. If the page is made very wide, the footer
text appears to the right rather than below the content column. Although
it is an interesting effect, I don't think it is useful. :)

The solution is quite simple. Insert a <br clear="all"> or the equivalent
in CSS terms in the footer tag. I just did it and it works fine now.

The other problem I noticed, when the viewport is narrow enough, the content
appears on top of the menu to the left. I don't have a quick fix for this
one. Sorry.

Carolyn
--
Carolyn Marenger

Mar 14 '06 #4
bobmct <r.********@fdc x.net> wrote:
Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?


Post a url, and mention which browser you are seeing this with.


OK - as requested:

www.fdcx.net/test.html


http://validator.w3.org/check?uri=ht....net/test.html

Please make sure that code validates (HTML and CSS) before asking
questions, otherwise we need to correct those errors for you to see if
that causes the problem.

--
Spartanicus
Mar 14 '06 #5
On Tue, 14 Mar 2006 15:15:28 -0500, Carolyn Marenger
<ca****@marenge r.com> wrote:
bobmct wrote:
On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
<in*****@invali d.invalid> wrote:
bobmct <r.********@fdc x.net> wrote:

Can ANYONE please explain why this output might not be working as
expected ONLY on certain long pages?

Post a url, and mention which browser you are seeing this with.

OK - as requested:

www.fdcx.net/test.html

I've created a sample page and the css is embedded for clarity. My
browser is Firefox 1.5.0.1 and with IE the page appears to display
correctly (that's a switch!)

I am trying to generate a common footer that appears at the bottom of
ANY page(s). If its a short page the footing should appear at or near
the physical browser window. However, if its a long page the footing
should appear at the end of the page content. In FF the footing text
is appearing properly but the top-border is appearing either in the
middle of the page or right up near the top. I MUST be missing
something to accomplish this.

THanks to anyone who can recommend how to correct and solve my
problem.

Bob


Bob,

It is actually worse than that. If the page is made very wide, the footer
text appears to the right rather than below the content column. Although
it is an interesting effect, I don't think it is useful. :)

The solution is quite simple. Insert a <br clear="all"> or the equivalent
in CSS terms in the footer tag. I just did it and it works fine now.

The other problem I noticed, when the viewport is narrow enough, the content
appears on top of the menu to the left. I don't have a quick fix for this
one. Sorry.

Carolyn


Well Thank you Carolyn;

I played with your suggestion and used the <br clear=all> just prior
to my footing block. Seems to have solved my problem.

I am having the most difficult time trying to balance between HTML
code and css code to achieve the desired result. <heavy sigh>

Thanks again.

Bob
Mar 15 '06 #6
> Well Thank you Carolyn;

I played with your suggestion and used the <br clear=all> just prior
to my footing block. Seems to have solved my problem.

I am having the most difficult time trying to balance between HTML
code and css code to achieve the desired result. <heavy sigh>

Thanks again.

Bob


Instead of
<br clear="all" />
<div class="footing_ relative">
you could try clear:all in the <div> class

e.g.
..footing_relat ive {
position: relative;
bottom: 0px;
margin-top: 3em;
border-top: 1px solid #666;
padding-top: 1em;
font-size: x-small;
text-align: center;
width: 100%;

clear:all
}

I don't know much about clear all, but if it works in the <br /> tag,
it should work in the CSS

Mar 15 '06 #7
Bob_M wrote:
On Tue, 14 Mar 2006 15:15:28 -0500, Carolyn Marenger
<ca****@marenge r.com> wrote:

Well Thank you Carolyn;

I played with your suggestion and used the <br clear=all> just prior
to my footing block. Seems to have solved my problem.

I am having the most difficult time trying to balance between HTML
code and css code to achieve the desired result. <heavy sigh>

Thanks again.

Bob


Bob,

You are welcome. Glad I could assist. It's nice being able to return the
favour after having been on the recieving end of so much help in
newsgroups. :)

Have a great one!

Carolyn
--
Carolyn Marenger

Mar 15 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
10663
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
2
4463
by: Tristan Miller | last post by:
Greetings. I have a two-column web layout, where the first column is just the regular body text with a "marign-right" of 16em, and the second column is an "absolute"-positioned div with a width of 16em. I would like to have a footer extending across the entire width of the page, at the very bottom of the page (i.e., after both columns end). How can I do this? There is no way of knowing in advance which of the two columns will be...
2
2155
by: Tim Charles | last post by:
Hello I am close to finishing my first properly css-friendly site (at least I hope it is), and am looking for some general feedback, plus a specific question answered, if possible. http://www.ediecast.co.uk/ is the url. The specific question is whether anyone can give me any help getting the footer to actually go at the bottom of the page, rather than staying in the
1
2980
by: Will Buntin | last post by:
I am trying to design my site without tables, using CSS for positioning and am having limited success. My main issue is I have a three column layout and my footer needs to run across the page, after the longest content from any column has finished. I've found a few examples and I thought I had mine set up correctly, but obviously something is wrong. So if there is any CSS expert out there willing to give me some tips... The page is...
7
2610
by: Andrew | last post by:
I've been struggling to achieve the following layout for some time now and I'm not getting anywhere. I've tried several approaches including floats & absolute positioning and none seem to work, primarily due to the footer not being aware of the columns due to me floating / positioning them. I have the following (very simple) markup: <div id="head">...</div> <div id="left">...</div>
0
1300
by: bobmct | last post by:
Gentlemen; I've created a class for a consistent footer ..footing { position: absolute; bottom: 0; font-size: x-small; text-align: center; width: 100%;
17
1988
by: Cerebral Believer | last post by:
Hi all, I would like to know how to get two rows of text links to appear at the bottom of a page. Generally I have been using <div> tags with the id attribute and CSS to place blocks of text, tables and images where I want them to be, but this has got me a little stuck. My HTML code is: <div id="footer" class="footer"> Home | About | Essays | Discussions | Member Area | Links & Resources | Contact<p>
4
29375
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
7
2288
by: Big Moxy | last post by:
site - http://projects.zanalysts.com/hearingaids1000/default.aspx css - http://projects.zanalysts.com/hearingaids1000/css/styles.css js - http://projects.zanalysts.com/hearingaids1000/JScript/setFooterPositionA.js and setFooterPositionR.js javascript - http://www.alistapart.com/articles/footers (example 5 and 6) I am in desparate need of a solution for a page footer. From googling it seems that using javascript is the best approach so I...
0
8182
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8130
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8579
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8279
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8433
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7093
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5540
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.