jQuery Plugins » footer https://jqueryplugins.info jQuery plugins, tutorials and resources Tue, 18 Oct 2011 08:13:27 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 Sticky footer (jQuery) won’t align to bottom of page exactly https://jqueryplugins.info/2011/10/sticky-footer-jquery-wont-align-to-bottom-of-page-exactly/ https://jqueryplugins.info/2011/10/sticky-footer-jquery-wont-align-to-bottom-of-page-exactly/#comments Wed, 12 Oct 2011 03:13:12 +0000 Admin https://jqueryplugins.info/2011/10/sticky-footer-jquery-wont-align-to-bottom-of-page-exactly/ Post link: Sticky footer (jQuery) won’t align to bottom of page exactly

The problem: I’m using jQuery to align my footer to the bottom of a page. It works in FF but IE, Chrome and Safari push the footer down by about...

]]>
Post link: Sticky footer (jQuery) won’t align to bottom of page exactly

The problem:

I’m using jQuery to align my footer to the bottom of a page. It works in FF but IE, Chrome and Safari push the footer down by about 50-100px.

See for yourself:

Look at the footer of www.directsponsor.org to see a live example of the problem.

The code:

<script type="text/javascript">

    jQuery.noConflict();

    jQuery(document).ready(function($  ){
        matchHeight();
    function matchHeight() {
        var mainHeight = $  ("#wrapper").outerHeight() - $  ("#header").outerHeight() - $  ("#leader").outerHeight() - $  ("#footer").outerHeight() - parseInt($  ("#footer").css("margin-top")) - 1 - parseInt($  ("#main").css("padding-top"))- parseInt($  ("#main").css("padding-bottom"));
        var mainReal = $  ("#main").outerHeight(true);

        if ((mainHeight + 1 + parseInt($  ("#main").css("padding-top")) + parseInt($  ("#main").css("padding-bottom"))) > mainReal) {
            $  ('#main').height(mainHeight);
        }
    }
    $  (window).resize(matchHeight);
});

</script>

My question:

What’s causing the footer to sink below the bottom of the page?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/sticky-footer-jquery-wont-align-to-bottom-of-page-exactly/feed/ 0
Sitemap in footer CSS to align/float li elements https://jqueryplugins.info/2011/09/sitemap-in-footer-css-to-alignfloat-li-elements/ https://jqueryplugins.info/2011/09/sitemap-in-footer-css-to-alignfloat-li-elements/#comments Wed, 21 Sep 2011 00:24:46 +0000 Admin https://jqueryplugins.info/2011/09/sitemap-in-footer-css-to-alignfloat-li-elements/ Post link: Sitemap in footer CSS to align/float li elements

Have a look at the following jsFiddle: http://jsfiddle.net/DNB9T/ how would you float the different ul li elements so they line up beside each other them move to the next line...

]]>
Post link: Sitemap in footer CSS to align/float li elements

Have a look at the following jsFiddle:

http://jsfiddle.net/DNB9T/

how would you float the different ul li elements so they line up beside each other them move to the next line when they hit the right boundary?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/sitemap-in-footer-css-to-alignfloat-li-elements/feed/ 0
jQuery DataTables and IE/Chrome/Safari: table overlaps footer instead of pushing it down https://jqueryplugins.info/2011/09/jquery-datatables-and-iechromesafari-table-overlaps-footer-instead-of-pushing-it-down/ https://jqueryplugins.info/2011/09/jquery-datatables-and-iechromesafari-table-overlaps-footer-instead-of-pushing-it-down/#comments Sat, 17 Sep 2011 05:21:14 +0000 Admin https://jqueryplugins.info/2011/09/jquery-datatables-and-iechromesafari-table-overlaps-footer-instead-of-pushing-it-down/ Post link: jQuery DataTables and IE/Chrome/Safari: table overlaps footer instead of pushing it down

This only happens on Google Chrome and Safari (not a problem on Firefox). If I have table that with multi-line data, it ends up expanding the table’s height — then...

]]>
Post link: jQuery DataTables and IE/Chrome/Safari: table overlaps footer instead of pushing it down

This only happens on Google Chrome and Safari (not a problem on Firefox).

If I have table that with multi-line data, it ends up expanding the table’s height — then instead of pushing down the DIV containing my footer, the table actually overlaps the footer. On Firefox the footer is pushed down as I’d expect.

Can anyone give me suggestion how to resolve this?
Will be glad to include specific code — the overall structure is as follows:

<div>
    <div id="main">

        //datatables being built here

    </div>
    <div id="footer">

        //footer code here

    </div>
</div>

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/jquery-datatables-and-iechromesafari-table-overlaps-footer-instead-of-pushing-it-down/feed/ 0
Photo Gallery #10: Building the Footer https://jqueryplugins.info/2011/08/photo-gallery-10-building-the-footer/ https://jqueryplugins.info/2011/08/photo-gallery-10-building-the-footer/#comments Thu, 25 Aug 2011 13:07:03 +0000 Admin https://jqueryplugins.info/2011/08/photo-gallery-10-building-the-footer/ Post link: Photo Gallery #10: Building the Footer

Click here for Links Support Topic – www.mattsaundersmcp.co.uk Twitter – www.twitter.com Facebook Page – www.facebook.com My Website for more tutorials – www.mattsaundersmcp.co.uk Video Rating: 0 / 5

]]>
Post link: Photo Gallery #10: Building the Footer

Click here for Links Support Topic – www.mattsaundersmcp.co.uk Twitter – www.twitter.com Facebook Page – www.facebook.com My Website for more tutorials – www.mattsaundersmcp.co.uk
Video Rating: 0 / 5

]]>
https://jqueryplugins.info/2011/08/photo-gallery-10-building-the-footer/feed/ 0
jQuery Mobile and a fixed footer https://jqueryplugins.info/2011/08/jquery-mobile-and-a-fixed-footer/ https://jqueryplugins.info/2011/08/jquery-mobile-and-a-fixed-footer/#comments Sat, 20 Aug 2011 22:13:38 +0000 Admin https://jqueryplugins.info/2011/08/jquery-mobile-and-a-fixed-footer/ Post link: jQuery Mobile and a fixed footer

I’ve got a jQuery mobile app wrapped in PhoneGap. I’m trying to use a fixed footer and header and having some trouble with the footer. If I have content with...

]]>
Post link: jQuery Mobile and a fixed footer

I’ve got a jQuery mobile app wrapped in PhoneGap. I’m trying to use a fixed footer and header and having some trouble with the footer.
If I have content with X length and then after a click the content is smaller – the footer would move up and not stick to the bottom of the screen. If I click on the screen it will go back to its place.

Any ideas why this happens?

My footer code is:

<div data-role="footer" data-position="fixed" data-id="footer_main">
                <div data-role="navbar">
                    <ul class="navbar">
                        <li><a href="#home" data-icon="home" class="search">Home</a></li>
                        <li><a href="#bycity" data-icon="search" class="search2">City</a></li>
                    </ul>
                </div><!-- /navbar -->
            </div><!-- /footer -->

This issue would happen on Android and iPhone in pretty much the same way (iPhone maybe even more).

BTW – I’m using jQuery mobile “jquery.mobile-1.0b2″ and PhoneGap 1.0

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/08/jquery-mobile-and-a-fixed-footer/feed/ 0
Is there a way to use JavaScript or jQuery to include a header and footer like php? https://jqueryplugins.info/2011/08/is-there-a-way-to-use-javascript-or-jquery-to-include-a-header-and-footer-like-php/ https://jqueryplugins.info/2011/08/is-there-a-way-to-use-javascript-or-jquery-to-include-a-header-and-footer-like-php/#comments Tue, 09 Aug 2011 12:03:19 +0000 Admin https://jqueryplugins.info/2011/is-there-a-way-to-use-javascript-or-jquery-to-include-a-header-and-footer-like-php/ Post link: Is there a way to use JavaScript or jQuery to include a header and footer like php?

Question by simsketch: Is there a way to use JavaScript or jQuery to include a header and footer like php? I know how to do this with php, but I...

]]>
Post link: Is there a way to use JavaScript or jQuery to include a header and footer like php?

Question by simsketch: Is there a way to use JavaScript or jQuery to include a header and footer like php?
I know how to do this with php, but I want to be able to view my site locally without having a server like XAMPP setup. This way, I can give my site to anyone and they can view it, but when I need to make changes to the header or footer, I only want to have to change one file.

Best answer:

Answer by Gitlez
Yes and No. Yes you can with certain things you can include the script, with the contents of that script writing html into the page.

No, in the sense that you cannot include header or begging html tags inside the document.

Possible solution: Thumbdrive Servers. You can download a self contained server (Server2Go), then all you need to do is zip the folder to share with others. All they’ll have to do is unzip the file, then run the one program file.

Let me know if you need some more info on this.

Cheers,

Gitlez

Yahoo Contact Form –> http://answers.yahoo.com/my/message_do?kid=mgNFAKInaa

Add your own answer in the comments!

]]>
https://jqueryplugins.info/2011/08/is-there-a-way-to-use-javascript-or-jquery-to-include-a-header-and-footer-like-php/feed/ 0