CSS Sticky buttons div not working in IE 11












9















I need to make the div containing the buttons sticky, so that the buttons in that div will stay at the bottom as the user scrolls the screen.
This is so that the user does not have to scroll all the way down to click on the buttons.



Sample page: https://jsfiddle.net/thunderbolt36/a4yjfg13/



The div containing the buttons is all the way down here:



<div class="form-group sticky-button-thing-not-working-on-ie">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Save" class="btn btn-default" />
</div>
</div>


The CSS class to make it sticky (working on Firefox):



.sticky-button-thing-not-working-on-ie {
position: sticky;
bottom: 0;
right: 0;
background: rgba(0, 211, 211, 0.6);
}


But the same is not working on Internet Explorer 11.



Any help on how to get the same code working on IE11?



Expected result: https://i.imgur.com/bEHXcrG.png










share|improve this question





























    9















    I need to make the div containing the buttons sticky, so that the buttons in that div will stay at the bottom as the user scrolls the screen.
    This is so that the user does not have to scroll all the way down to click on the buttons.



    Sample page: https://jsfiddle.net/thunderbolt36/a4yjfg13/



    The div containing the buttons is all the way down here:



    <div class="form-group sticky-button-thing-not-working-on-ie">
    <div class="col-md-offset-2 col-md-10">
    <input type="submit" value="Save" class="btn btn-default" />
    </div>
    </div>


    The CSS class to make it sticky (working on Firefox):



    .sticky-button-thing-not-working-on-ie {
    position: sticky;
    bottom: 0;
    right: 0;
    background: rgba(0, 211, 211, 0.6);
    }


    But the same is not working on Internet Explorer 11.



    Any help on how to get the same code working on IE11?



    Expected result: https://i.imgur.com/bEHXcrG.png










    share|improve this question



























      9












      9








      9


      1






      I need to make the div containing the buttons sticky, so that the buttons in that div will stay at the bottom as the user scrolls the screen.
      This is so that the user does not have to scroll all the way down to click on the buttons.



      Sample page: https://jsfiddle.net/thunderbolt36/a4yjfg13/



      The div containing the buttons is all the way down here:



      <div class="form-group sticky-button-thing-not-working-on-ie">
      <div class="col-md-offset-2 col-md-10">
      <input type="submit" value="Save" class="btn btn-default" />
      </div>
      </div>


      The CSS class to make it sticky (working on Firefox):



      .sticky-button-thing-not-working-on-ie {
      position: sticky;
      bottom: 0;
      right: 0;
      background: rgba(0, 211, 211, 0.6);
      }


      But the same is not working on Internet Explorer 11.



      Any help on how to get the same code working on IE11?



      Expected result: https://i.imgur.com/bEHXcrG.png










      share|improve this question
















      I need to make the div containing the buttons sticky, so that the buttons in that div will stay at the bottom as the user scrolls the screen.
      This is so that the user does not have to scroll all the way down to click on the buttons.



      Sample page: https://jsfiddle.net/thunderbolt36/a4yjfg13/



      The div containing the buttons is all the way down here:



      <div class="form-group sticky-button-thing-not-working-on-ie">
      <div class="col-md-offset-2 col-md-10">
      <input type="submit" value="Save" class="btn btn-default" />
      </div>
      </div>


      The CSS class to make it sticky (working on Firefox):



      .sticky-button-thing-not-working-on-ie {
      position: sticky;
      bottom: 0;
      right: 0;
      background: rgba(0, 211, 211, 0.6);
      }


      But the same is not working on Internet Explorer 11.



      Any help on how to get the same code working on IE11?



      Expected result: https://i.imgur.com/bEHXcrG.png







      html css3 internet-explorer-11 sticky






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 5 '16 at 20:48









      Spudley

      140k33196276




      140k33196276










      asked Jun 5 '16 at 19:45









      Tx36Tx36

      96236




      96236
























          4 Answers
          4






          active

          oldest

          votes


















          16














          sticky doesn't work on IE11, but luckily, in this case, you can use fixed, which will work on both old and new browsers.



          .sticky-button-thing-not-working-on-ie {
          position: fixed; /* added to support older browsers */
          position: sticky;
          bottom: 0;
          right: 0;
          background: rgba(0, 211, 211, 0.6);
          }


          And you can actually drop sticky, since it's not used how it's intended. sticky excels i.e. when you position it below the top edge, and when one scroll down it it will move with the page until it reach the top edge, where it will stop and stay until one scroll up again.



          Side note: Edge support sticky from version 16






          share|improve this answer





















          • 3





            well, fixed elements are positioned to viewport

            – shabunc
            Mar 21 '17 at 12:29











          • @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

            – LGSon
            Mar 21 '17 at 12:43






          • 2





            sticky != fixed

            – kpup
            Jul 28 '17 at 18:17











          • @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

            – LGSon
            Jul 28 '17 at 18:54






          • 1





            @kpup I updated my answer to clarify what I meant, so you can retract your down vote

            – LGSon
            Jul 28 '17 at 19:55



















          6














          IE11 will not support position:sticky and never will (as it is being superceded by Edge): see browser support at Can I Use



          CSS Tricks recently posted something that may help: Sticky Footer, Five Ways



          Even then, the flex example won't work with IE11, but you can tweak it using code from Normalizing Cross-browser Flexbox Bugs.






          share|improve this answer































            3














            This can be best solved by StickyBits, which is a polyfill for position: sticky for IE (and other browsers): https://github.com/dollarshaveclub/stickybits



            Most important to me:




            it does not have the jumpiness that plugins that are built around position: fixed have because it tries to support position: sticky first.







            share|improve this answer































              -4














              Check your page in top <!DOCTYPE HTML>






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37646066%2fcss-sticky-buttons-div-not-working-in-ie-11%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                16














                sticky doesn't work on IE11, but luckily, in this case, you can use fixed, which will work on both old and new browsers.



                .sticky-button-thing-not-working-on-ie {
                position: fixed; /* added to support older browsers */
                position: sticky;
                bottom: 0;
                right: 0;
                background: rgba(0, 211, 211, 0.6);
                }


                And you can actually drop sticky, since it's not used how it's intended. sticky excels i.e. when you position it below the top edge, and when one scroll down it it will move with the page until it reach the top edge, where it will stop and stay until one scroll up again.



                Side note: Edge support sticky from version 16






                share|improve this answer





















                • 3





                  well, fixed elements are positioned to viewport

                  – shabunc
                  Mar 21 '17 at 12:29











                • @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                  – LGSon
                  Mar 21 '17 at 12:43






                • 2





                  sticky != fixed

                  – kpup
                  Jul 28 '17 at 18:17











                • @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                  – LGSon
                  Jul 28 '17 at 18:54






                • 1





                  @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                  – LGSon
                  Jul 28 '17 at 19:55
















                16














                sticky doesn't work on IE11, but luckily, in this case, you can use fixed, which will work on both old and new browsers.



                .sticky-button-thing-not-working-on-ie {
                position: fixed; /* added to support older browsers */
                position: sticky;
                bottom: 0;
                right: 0;
                background: rgba(0, 211, 211, 0.6);
                }


                And you can actually drop sticky, since it's not used how it's intended. sticky excels i.e. when you position it below the top edge, and when one scroll down it it will move with the page until it reach the top edge, where it will stop and stay until one scroll up again.



                Side note: Edge support sticky from version 16






                share|improve this answer





















                • 3





                  well, fixed elements are positioned to viewport

                  – shabunc
                  Mar 21 '17 at 12:29











                • @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                  – LGSon
                  Mar 21 '17 at 12:43






                • 2





                  sticky != fixed

                  – kpup
                  Jul 28 '17 at 18:17











                • @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                  – LGSon
                  Jul 28 '17 at 18:54






                • 1





                  @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                  – LGSon
                  Jul 28 '17 at 19:55














                16












                16








                16







                sticky doesn't work on IE11, but luckily, in this case, you can use fixed, which will work on both old and new browsers.



                .sticky-button-thing-not-working-on-ie {
                position: fixed; /* added to support older browsers */
                position: sticky;
                bottom: 0;
                right: 0;
                background: rgba(0, 211, 211, 0.6);
                }


                And you can actually drop sticky, since it's not used how it's intended. sticky excels i.e. when you position it below the top edge, and when one scroll down it it will move with the page until it reach the top edge, where it will stop and stay until one scroll up again.



                Side note: Edge support sticky from version 16






                share|improve this answer















                sticky doesn't work on IE11, but luckily, in this case, you can use fixed, which will work on both old and new browsers.



                .sticky-button-thing-not-working-on-ie {
                position: fixed; /* added to support older browsers */
                position: sticky;
                bottom: 0;
                right: 0;
                background: rgba(0, 211, 211, 0.6);
                }


                And you can actually drop sticky, since it's not used how it's intended. sticky excels i.e. when you position it below the top edge, and when one scroll down it it will move with the page until it reach the top edge, where it will stop and stay until one scroll up again.



                Side note: Edge support sticky from version 16







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jul 29 '17 at 10:12

























                answered Jun 5 '16 at 20:20









                LGSonLGSon

                69.5k84584




                69.5k84584








                • 3





                  well, fixed elements are positioned to viewport

                  – shabunc
                  Mar 21 '17 at 12:29











                • @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                  – LGSon
                  Mar 21 '17 at 12:43






                • 2





                  sticky != fixed

                  – kpup
                  Jul 28 '17 at 18:17











                • @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                  – LGSon
                  Jul 28 '17 at 18:54






                • 1





                  @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                  – LGSon
                  Jul 28 '17 at 19:55














                • 3





                  well, fixed elements are positioned to viewport

                  – shabunc
                  Mar 21 '17 at 12:29











                • @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                  – LGSon
                  Mar 21 '17 at 12:43






                • 2





                  sticky != fixed

                  – kpup
                  Jul 28 '17 at 18:17











                • @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                  – LGSon
                  Jul 28 '17 at 18:54






                • 1





                  @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                  – LGSon
                  Jul 28 '17 at 19:55








                3




                3





                well, fixed elements are positioned to viewport

                – shabunc
                Mar 21 '17 at 12:29





                well, fixed elements are positioned to viewport

                – shabunc
                Mar 21 '17 at 12:29













                @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                – LGSon
                Mar 21 '17 at 12:43





                @shabunc That is correct, and fixed is the closest you can get for browsers not supporting sticky ... well, you could of course add a small script to make it behave as sticky

                – LGSon
                Mar 21 '17 at 12:43




                2




                2





                sticky != fixed

                – kpup
                Jul 28 '17 at 18:17





                sticky != fixed

                – kpup
                Jul 28 '17 at 18:17













                @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                – LGSon
                Jul 28 '17 at 18:54





                @kpup That is correct, but if you check the expected result the OP want, you'll see that my answer solves that.

                – LGSon
                Jul 28 '17 at 18:54




                1




                1





                @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                – LGSon
                Jul 28 '17 at 19:55





                @kpup I updated my answer to clarify what I meant, so you can retract your down vote

                – LGSon
                Jul 28 '17 at 19:55













                6














                IE11 will not support position:sticky and never will (as it is being superceded by Edge): see browser support at Can I Use



                CSS Tricks recently posted something that may help: Sticky Footer, Five Ways



                Even then, the flex example won't work with IE11, but you can tweak it using code from Normalizing Cross-browser Flexbox Bugs.






                share|improve this answer




























                  6














                  IE11 will not support position:sticky and never will (as it is being superceded by Edge): see browser support at Can I Use



                  CSS Tricks recently posted something that may help: Sticky Footer, Five Ways



                  Even then, the flex example won't work with IE11, but you can tweak it using code from Normalizing Cross-browser Flexbox Bugs.






                  share|improve this answer


























                    6












                    6








                    6







                    IE11 will not support position:sticky and never will (as it is being superceded by Edge): see browser support at Can I Use



                    CSS Tricks recently posted something that may help: Sticky Footer, Five Ways



                    Even then, the flex example won't work with IE11, but you can tweak it using code from Normalizing Cross-browser Flexbox Bugs.






                    share|improve this answer













                    IE11 will not support position:sticky and never will (as it is being superceded by Edge): see browser support at Can I Use



                    CSS Tricks recently posted something that may help: Sticky Footer, Five Ways



                    Even then, the flex example won't work with IE11, but you can tweak it using code from Normalizing Cross-browser Flexbox Bugs.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 5 '16 at 20:08









                    aardrianaardrian

                    5,609925




                    5,609925























                        3














                        This can be best solved by StickyBits, which is a polyfill for position: sticky for IE (and other browsers): https://github.com/dollarshaveclub/stickybits



                        Most important to me:




                        it does not have the jumpiness that plugins that are built around position: fixed have because it tries to support position: sticky first.







                        share|improve this answer




























                          3














                          This can be best solved by StickyBits, which is a polyfill for position: sticky for IE (and other browsers): https://github.com/dollarshaveclub/stickybits



                          Most important to me:




                          it does not have the jumpiness that plugins that are built around position: fixed have because it tries to support position: sticky first.







                          share|improve this answer


























                            3












                            3








                            3







                            This can be best solved by StickyBits, which is a polyfill for position: sticky for IE (and other browsers): https://github.com/dollarshaveclub/stickybits



                            Most important to me:




                            it does not have the jumpiness that plugins that are built around position: fixed have because it tries to support position: sticky first.







                            share|improve this answer













                            This can be best solved by StickyBits, which is a polyfill for position: sticky for IE (and other browsers): https://github.com/dollarshaveclub/stickybits



                            Most important to me:




                            it does not have the jumpiness that plugins that are built around position: fixed have because it tries to support position: sticky first.








                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 19 '17 at 13:22









                            nachtigallnachtigall

                            1,61811723




                            1,61811723























                                -4














                                Check your page in top <!DOCTYPE HTML>






                                share|improve this answer




























                                  -4














                                  Check your page in top <!DOCTYPE HTML>






                                  share|improve this answer


























                                    -4












                                    -4








                                    -4







                                    Check your page in top <!DOCTYPE HTML>






                                    share|improve this answer













                                    Check your page in top <!DOCTYPE HTML>







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 3 '17 at 9:28









                                    Pankaj UpadhyayPankaj Upadhyay

                                    1,4541319




                                    1,4541319






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37646066%2fcss-sticky-buttons-div-not-working-in-ie-11%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Coverage of Google Street View

                                        Full-time equivalent

                                        Surfing