PS: The thing is with fixed positioning you get a *much better*
experience in browsers that support it, e.g. smoother, no jumping
elements/flickering. Using a resize handler is just clumsy.

IE6 can be hacked away to support it, see link above.

--Klaus


On 5 Jun., 08:52, Javier Martínez <[EMAIL PROTECTED]> wrote:
> I think that position:fixed is not supported on IE6.
>
> Klaus Hartl escribió:
>
> > On 5 Jun., 06:22, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> >> or this ...
>
> >> $(document).ready(function() {
> >>     stickyFooter();
>
> >>     $(window).resize(stickyFooter);
>
> >> });
>
> > How about:
>
> > $(function() {
> >     $(window).resize(stickyFooter).trigger('resize');
> > });
>
> > You wouldn't need a named function here anymore:
>
> > $(function() {
> >     $(window).
> >         resize(function() {
> >             var height = $(document).height() - 341;
> >             $('#footer').css('margin-top', height);
> >         }).
> >         trigger('resize');
> > });
>
> > But do you really need JavaScript at all and can't let CSS do its job?
>
> > #footer {
> >     position: fixed;
> >     bottom: 0;
> > }
>
> > --Klaus

Reply via email to