472,984 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1675
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
2
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...
2
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. ...
1
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,...
7
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,...
0
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: ...
17
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,...
4
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...
7
by: Big Moxy | last post by:
site - http://projects.zanalysts.com/hearingaids1000/default.aspx css - http://projects.zanalysts.com/hearingaids1000/css/styles.css js -...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.