Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 13th, 2006, 08:35 PM
bobmct
Guest
 
Posts: n/a
Default 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
  #2  
Old March 14th, 2006, 01:55 AM
Spartanicus
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

bobmct <r.mariotti@fdcx.net> wrote:
[color=blue]
>Can ANYONE please explain why this output might not be working as
>expected ONLY on certain long pages?[/color]

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

--
Spartanicus
  #3  
Old March 14th, 2006, 07:35 PM
bobmct
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
<invalid@invalid.invalid> wrote:
[color=blue]
>bobmct <r.mariotti@fdcx.net> wrote:
>[color=green]
>>Can ANYONE please explain why this output might not be working as
>>expected ONLY on certain long pages?[/color]
>
>Post a url, and mention which browser you are seeing this with.[/color]


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



  #4  
Old March 14th, 2006, 08:25 PM
Carolyn Marenger
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

bobmct wrote:
[color=blue]
> On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
> <invalid@invalid.invalid> wrote:
>[color=green]
>>bobmct <r.mariotti@fdcx.net> wrote:
>>[color=darkred]
>>>Can ANYONE please explain why this output might not be working as
>>>expected ONLY on certain long pages?[/color]
>>
>>Post a url, and mention which browser you are seeing this with.[/color]
>
>
> 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[/color]

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

  #5  
Old March 14th, 2006, 09:05 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

bobmct <r.mariotti@fdcx.net> wrote:
[color=blue][color=green][color=darkred]
>>>Can ANYONE please explain why this output might not be working as
>>>expected ONLY on certain long pages?[/color]
>>
>>Post a url, and mention which browser you are seeing this with.[/color]
>
>OK - as requested:
>
>www.fdcx.net/test.html[/color]

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
  #6  
Old March 15th, 2006, 01:55 AM
Bob_M
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

On Tue, 14 Mar 2006 15:15:28 -0500, Carolyn Marenger
<cajunk@marenger.com> wrote:
[color=blue]
>bobmct wrote:
>[color=green]
>> On Tue, 14 Mar 2006 01:45:35 GMT, Spartanicus
>> <invalid@invalid.invalid> wrote:
>>[color=darkred]
>>>bobmct <r.mariotti@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.[/color]
>>
>>
>> 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[/color]
>
>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[/color]

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
  #7  
Old March 15th, 2006, 03:25 AM
Trevor L.
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

> Well Thank you Carolyn;[color=blue]
>
> 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[/color]

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

  #8  
Old March 15th, 2006, 07:55 AM
Carolyn Marenger
Guest
 
Posts: n/a
Default Re: PLEASE help me understand footer positioning?

Bob_M wrote:
[color=blue]
> On Tue, 14 Mar 2006 15:15:28 -0500, Carolyn Marenger
> <cajunk@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[/color]

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

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles