Footer, the beast
am 24.08.2007 16:20:20 von john wayneThe Footer is much difficult one to use. I have an HTML page with 3
columns with different heights. If I set the height of ,
and every column and container at "100%" or "auto" I see that the
container
of the tallest column but it has the height of the displayed page and
than the footer is positionated not at the bottom of the page but at
the basis of the displayed page. I have seen a lot of people that
leave to use Footer. I can't understand why it has to be so difficult.
Re: Footer, the beast
am 24.08.2007 16:26:02 von TravisNewburyOn Aug 24, 10:20 am, joker joker wrote: > joker wrote: joker wrote: joker wrote: Edwin van der Vaart wrote: Kevin Scholl wrote: The question is that the "container Bernhard Sturm wrote: Look at this example: joker wrote: joker wrote: If it can be useful to someone I have resolved removing the absolute
> The Footer is much difficult one to use. I have an HTML page with 3
> columns with different heights. If I set the height of ,
> and every column and container at "100%" or "auto" I see that the
> container
> of the tallest column but it has the height of the displayed page and
> than the footer is positionated not at the bottom of the page but at
> the basis of the displayed page. I have seen a lot of people that
> leave to use Footer. I can't understand why it has to be so difficult.
It would be pretty easy with tables... ;-)
Re: Footer, the beast
am 24.08.2007 17:18:54 von Edwin van der Vaart
> The Footer is much difficult one to use. I have an HTML page with 3
> columns with different heights. If I set the height of ,
> and every column and container at "100%" or "auto" I see that the
> container
> of the tallest column but it has the height of the displayed page and
> than the footer is positionated not at the bottom of the page but at
> the basis of the displayed page. I have seen a lot of people that
> leave to use Footer. I can't understand why it has to be so difficult.
You could put those 3 div's in a larger div and the footer under need
the larger div.
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Edwin's persoonlijke web site
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info, issociate.de and software-help1.org to duplicate this post.
Re: Footer, the beast
am 24.08.2007 19:19:21 von john wayne
> You could put those 3 div's in a larger div and the footer under need
> the larger div.
uhm....I do that but the problem is not in the width but in the
height. Infact, the max height of the main
others
address-bar to the horizontal scroll-bar) and not of the entrire html
page. I've tryed to set height at "100%" and "auto" but with no
positive results.
Re: Footer, the beast
am 24.08.2007 19:42:03 von lws4art
>> You could put those 3 div's in a larger div and the footer under need
>> the larger div.
>
> uhm....I do that but the problem is not in the width but in the
> height. Infact, the max height of the main
> others
> address-bar to the horizontal scroll-bar) and not of the entrire html
> page. I've tryed to set height at "100%" and "auto" but with no
> positive results.
>
How about a URL to what you have tried and a description of what you
wish to change...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: Footer, the beast
am 24.08.2007 22:01:45 von Edwin van der Vaart
>> You could put those 3 div's in a larger div and the footer under need
>> the larger div.
>
> uhm....I do that but the problem is not in the width but in the
> height. Infact, the max height of the main
> others
> address-bar to the horizontal scroll-bar) and not of the entrire html
> page. I've tryed to set height at "100%" and "auto" but with no
> positive results.
Relative height such as "%" and "auto" aren't supported (correct me when
I'm wrong) only absolute heights such as "em" and "px".
So for the footer you need to use absolute positioning. Disadvantage is
when the visitor has the browser full screen, e.g. 1280x1024, the footer
isn't at the bottom of the browser. The same goes for 640x480 and smaller.
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Edwin's persoonlijke web site
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info, issociate.de, velocityreviews, umailcampaign.com,
gthelp.com, webfrustration.com, excip.com and many other to duplicate
this post.
Re: Footer, the beast
am 24.08.2007 23:15:23 von Bernhard Sturm
> The Footer is much difficult one to use. I have an HTML page with 3
> columns with different heights. If I set the height of ,
> and every column and container at "100%" or "auto" I see that the
> container
> of the tallest column but it has the height of the displayed page and
> than the footer is positionated not at the bottom of the page but at
> the basis of the displayed page. I have seen a lot of people that
> leave to use Footer. I can't understand why it has to be so difficult.
>
From a practical point of view: where do you define the 'bottom' of a
web page? At the end of your HTML-document? At the bottom of the
viewport? What exactly do you mean by referring to the 'bottom'?
You see: it all boils down to UA viewport dimensions. Where would you
locate your footer on a 480x320px display (iPhone) versus a UA that
accomodates 600px x 1000px?
bernhard
--
www.daszeichen.ch
remove nixspam to reply
Re: Footer, the beast
am 25.08.2007 05:56:07 von Kevin Scholl
> joker wrote:
>>> You could put those 3 div's in a larger div and the footer under need
>>> the larger div.
>>
>> uhm....I do that but the problem is not in the width but in the
>> height. Infact, the max height of the main
>> others
>> address-bar to the horizontal scroll-bar) and not of the entrire html
>> page. I've tryed to set height at "100%" and "auto" but with no
>> positive results.
>
> Relative height such as "%" and "auto" aren't supported (correct me when
> I'm wrong) only absolute heights such as "em" and "px".
Uh, okay ... wrong. :)
> So for the footer you need to use absolute positioning. Disadvantage is
> when the visitor has the browser full screen, e.g. 1280x1024, the footer
> isn't at the bottom of the browser. The same goes for 640x480 and smaller.
If I'm understanding what the OP is trying to do here -- a sticky footer
(IOW on a long page, the footer remains at the bottom of the content,
but on a short page that doesn't fill the viewport, the footer will
stick to the bottom of that viewport) -- it takes some rather
interesting CSS. But it CAN be done; see sample and adjust the height of
your viewport:
http://beta.ksscholl.com/jquery/template.html
IIRC the following is whence the basis for the above came:
http://www.themaninblue.com/writing/perspective/2005/08/29/
--
*** Remove the DELETE from my address to reply ***
======================================================
Kevin Scholl http://www.ksscholl.com/
kscholl@comcast.DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
======================================================
Re: Footer, the beast
am 25.08.2007 09:09:09 von Bernhard Sturm
>
> If I'm understanding what the OP is trying to do here -- a sticky footer
> (IOW on a long page, the footer remains at the bottom of the content,
> but on a short page that doesn't fill the viewport, the footer will
> stick to the bottom of that viewport) -- it takes some rather
> interesting CSS. But it CAN be done; see sample and adjust the height of
> your viewport:
>
> http://beta.ksscholl.com/jquery/template.html
the example has a glitch when switching JavaScript off (FF Windows XP):
the top logo moves into the content and overlaps the first heading.
A solution would be nice, that doesn't rely on JavaScripting.
bernhard
--
www.daszeichen.ch
remove nixspam to replyRe: Footer, the beast
am 25.08.2007 15:56:05 von john wayne
the three
It take the height of the viewport and not of the height of the
tallest
I have something like this:
..........
..........
..........
very standard html page :-(
Footer and container has position:relative.
"Central div" is very tall , more than "left" and "right" divs, but
the "container div" has the height of the viewport and not of the
"central div".
I would want that the "container div" took the height of the "central
div".
Re: Footer, the beast
am 25.08.2007 16:04:46 von Kevin Scholl
> Kevin Scholl wrote:
>>
>> If I'm understanding what the OP is trying to do here -- a sticky
>> footer (IOW on a long page, the footer remains at the bottom of the
>> content, but on a short page that doesn't fill the viewport, the
>> footer will stick to the bottom of that viewport) -- it takes some
>> rather interesting CSS. But it CAN be done; see sample and adjust the
>> height of your viewport:
>>
>> http://beta.ksscholl.com/jquery/template.html
>
> the example has a glitch when switching JavaScript off (FF Windows XP):
> the top logo moves into the content and overlaps the first heading.
> A solution would be nice, that doesn't rely on JavaScripting.
That "glitch" has nothing to do with the solution in question. Turning
off Javascript removes the date stamp in the upper right (since in this
case the date stamp is done with JS rather than a server-side solution),
moving the content up into the masthead. You'll note, however, that the
footer remains stuck to the footer. There is no Javascript involved in
said solution.
--
*** Remove the DELETE from my address to reply ***
======================================================
Kevin Scholl http://www.ksscholl.com/
kscholl@comcast.DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
======================================================Re: Footer, the beast
am 25.08.2007 16:20:02 von john wayne
body {
background-color:black;
text-align:center;
}
html,body{margin:0; padding: 0; height:100%;}
div#Container{
position:relative;
text_align: center;
width: 800px;
height: 100%;
left: 0;
border: 0;
padding: 0;
background-color: #FFF;
}
div#Container_left{
position:absolute;
width: 150px;
height: 100%;
left: 0;
top: 0;
border: 0;
padding: 0;
margin: 0;
background-color: #f00;
color: #fff;
}
div#Container_central{
position:absolute;
left: 0;
top: 0;
text_align: center;
width: 500px;
height: 1000px;
border: 0;
padding: 0;
margin: 0;
margin-left: 150px;
background-color: #0f0;
color: #fff;
}
div#Container_right{
position:absolute;
left: 0;
top: 0;
text_align: center;
width: 150px;
height: 200px;
border: 0;
padding: 0px 0px 0px 50px;
margin: 0;
margin-left: 650px;
background-color: #00f;
color: #fff;
}
div#Footer{
position:relative;
width: 100%;
height: 20px;
left:0;
background-color: #FF5604;
color:white;
}
what is wrong here? can you see the footer position on your browser?
where is it? I use ie 6xxx.... on xp
Re: Footer, the beast
am 25.08.2007 16:22:00 von Edwin van der Vaart
> The question is that the "container
> the three
> It take the height of the viewport and not of the height of the
> tallest
>
>
> I have something like this:
>
>
>
> ..........
>
>
>
> ..........
>
>
>
> ..........
>
>
>
>
>
> very standard html page :-(
>
> Footer and container has position:relative.
>
> "Central div" is very tall , more than "left" and "right" divs, but
> the "container div" has the height of the viewport and not of the
> "central div".
> I would want that the "container div" took the height of the "central
> div".
You mean like this
http://www.evandervaart.nl/templates/columns/3col.html
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Edwin's persoonlijke web site
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info, issociate.de, velocityreviews, umailcampaign.com,
gthelp.com, webfrustration.com, excip.com and many other to duplicate
this post.
Re: Footer, the beast
am 25.08.2007 19:39:38 von lws4art
> Look at this example:
>
>
> body {
> background-color:black;
> text-align:center;
> }
>
> html,body{margin:0; padding: 0; height:100%;}
>
>
> div#Container{
> position:relative;
> text_align: center;
^^^^^^^^^^
syntax: text-align: center; but not sure why you would do so, centered
text only works for very limited situations, like poetry maybe. Unless
this is a wrong-headed approach to center block elements...
> width: 800px;
BAD idea, what happens if the windows is larger or smaller, or the text
size is increased on the client?
> height: 100%;
Hmm this will try make the block as tall as the view port, okay what
happens if you have more content than that?
>
> what is wrong here? can you see the footer position on your browser?
> where is it? I use ie 6xxx.... on xp
Of course not. You made 'Container' the height of your viewport then
have 'Footer' follow so 'Footer' will always render just below the
bottom of the viewport!
How about:
"http://www.w3.org/TR/html4/strict.dtd">
Column 1
Lorem ipsum dolor sit amet, consectetuer...
Suspendisse egestas tempor erat...
Column 2
Suspendisse potenti. Suspendisse potenti...
Pellentesque eros purus, consequat...
Morbi mollis. Quisque sollicitudin...
Donec vel diam. Integer quis pede...
Suspendisse egestas tempor erat...
Morbi mollis. Quisque sollicitudin...
Donec vel diam. Integer quis pede...
Suspendisse egestas tempor erat...
Morbi mollis. Quisque sollicitudin...
Donec vel diam. Integer quis pede...
Column 3
Duis dapibus, dolor eget scelerisque...
Suspendisse egestas tempor erat...
Morbi mollis. Quisque sollicitudin...
Donec vel diam. Integer quis pede...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.comRe: Footer, the beast
am 26.08.2007 11:46:16 von john wayne
and relative positioning. Now it is all ok.