467,879 Members | 1,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

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
  • viewed: 1524
Share:
7 Replies
bobmct <r.********@fdcx.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*****@invalid.invalid> wrote:
bobmct <r.********@fdcx.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*****@invalid.invalid> wrote:
bobmct <r.********@fdcx.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.********@fdcx.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****@marenger.com> wrote:
bobmct wrote:
On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
<in*****@invalid.invalid> wrote:
bobmct <r.********@fdcx.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_relative {
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****@marenger.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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tristan Miller | last post: by
2 posts views Thread by Tim Charles | last post: by
1 post views Thread by Will Buntin | last post: by
reply views Thread by bobmct | last post: by
17 posts views Thread by Cerebral Believer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.