Rails - Bootstrap footer disappears?A concise explanation of nil v. empty v. blank in Ruby on RailsUnderstanding the Rails Authenticity TokenHow can I rename a database column in a Ruby on Rails migration?Center a column using Twitter Bootstrap 3Change navbar color in Twitter Bootstrapvertical-align with Bootstrap 3Fill remaining vertical space with CSS using display:flexCannot display HTML stringBootstrap footer: not aligned with the left side of the page. Rails template issue?keeping the footer at the bottom, but not fixed

How to safely derail a train during transit?

A particular customize with green line and letters for subfloat

Closest Prime Number

How easy is it to start Magic from scratch?

Do the temporary hit points from Reckless Abandon stack if I make multiple attacks on my turn?

What is the best translation for "slot" in the context of multiplayer video games?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Detecting if an element is found inside a container

Implement the Thanos sorting algorithm

Do all network devices need to make routing decisions, regardless of communication across networks or within a network?

How long to clear the 'suck zone' of a turbofan after start is initiated?

Fastening aluminum fascia to wooden subfascia

Why, precisely, is argon used in neutrino experiments?

Increase performance creating Mandelbrot set in python

Nautlius: add mouse right-click action to compute MD5 sum

Was Spock the First Vulcan in Starfleet?

Avoiding estate tax by giving multiple gifts

Is a stroke of luck acceptable after a series of unfavorable events?

What does the word "Atten" mean?

Type int? vs type int

Unreliable Magic - Is it worth it?

Short story about space worker geeks who zone out by 'listening' to radiation from stars

Does "every" first-order theory have a finitely axiomatizable conservative extension?

Is `x >> pure y` equivalent to `liftM (const y) x`



Rails - Bootstrap footer disappears?


A concise explanation of nil v. empty v. blank in Ruby on RailsUnderstanding the Rails Authenticity TokenHow can I rename a database column in a Ruby on Rails migration?Center a column using Twitter Bootstrap 3Change navbar color in Twitter Bootstrapvertical-align with Bootstrap 3Fill remaining vertical space with CSS using display:flexCannot display HTML stringBootstrap footer: not aligned with the left side of the page. Rails template issue?keeping the footer at the bottom, but not fixed













0















so i have a pretty normal setup inside my application.html.erb file:



<html class="h-100">

!head, title, scripts, stylesheets removed for this example here on stackoverflow!

<body class="d-flex flex-column h-100">



<!-- Dropdown Structure -->
<header>

<%= render 'shared/nav' %>
<div class="container">
<%= render partial: 'shared/message' %>
</div>

</header>

<main role="main" class="flex-shrink-0">
<%= yield %>
</main>

<footer class="footer mt-auto py-3">
<div class="container">
<h3>hello</h3>
</div>
</footer>
</body>




That looks good to me. However, the footer is not visible! In fact, it completely disappears when i visit a page. When i inspect the footer via developer tool, it's not even listed inside there.



But for some odd reasons on some pages the footer becomes visible and is then also listed in the developer tool, like it normally should.



My initial thought was that an old scaffold.scss file was causing that and i removed the file entirely, however, that didn't made any changes at all.



I have no errors whatsoever. Never had this kind of issue before. I've searched my app.scss file for any .footer classes, body, html or any other classes that could overwrite the css from bootstrap, but couldn't find anything (used search tool in vscode).



EDIT:



It seems like my html and the body is only 760px in height, however, the main is full width (over 2000px).



I've tried to add html, body  height: 100%; , but even with that height is still just 760px in height. That seems to be the issue, since the pages that show the footer are not higher than 760px.



Any ideas what could cause that problem?










share|improve this question




























    0















    so i have a pretty normal setup inside my application.html.erb file:



    <html class="h-100">

    !head, title, scripts, stylesheets removed for this example here on stackoverflow!

    <body class="d-flex flex-column h-100">



    <!-- Dropdown Structure -->
    <header>

    <%= render 'shared/nav' %>
    <div class="container">
    <%= render partial: 'shared/message' %>
    </div>

    </header>

    <main role="main" class="flex-shrink-0">
    <%= yield %>
    </main>

    <footer class="footer mt-auto py-3">
    <div class="container">
    <h3>hello</h3>
    </div>
    </footer>
    </body>




    That looks good to me. However, the footer is not visible! In fact, it completely disappears when i visit a page. When i inspect the footer via developer tool, it's not even listed inside there.



    But for some odd reasons on some pages the footer becomes visible and is then also listed in the developer tool, like it normally should.



    My initial thought was that an old scaffold.scss file was causing that and i removed the file entirely, however, that didn't made any changes at all.



    I have no errors whatsoever. Never had this kind of issue before. I've searched my app.scss file for any .footer classes, body, html or any other classes that could overwrite the css from bootstrap, but couldn't find anything (used search tool in vscode).



    EDIT:



    It seems like my html and the body is only 760px in height, however, the main is full width (over 2000px).



    I've tried to add html, body  height: 100%; , but even with that height is still just 760px in height. That seems to be the issue, since the pages that show the footer are not higher than 760px.



    Any ideas what could cause that problem?










    share|improve this question


























      0












      0








      0








      so i have a pretty normal setup inside my application.html.erb file:



      <html class="h-100">

      !head, title, scripts, stylesheets removed for this example here on stackoverflow!

      <body class="d-flex flex-column h-100">



      <!-- Dropdown Structure -->
      <header>

      <%= render 'shared/nav' %>
      <div class="container">
      <%= render partial: 'shared/message' %>
      </div>

      </header>

      <main role="main" class="flex-shrink-0">
      <%= yield %>
      </main>

      <footer class="footer mt-auto py-3">
      <div class="container">
      <h3>hello</h3>
      </div>
      </footer>
      </body>




      That looks good to me. However, the footer is not visible! In fact, it completely disappears when i visit a page. When i inspect the footer via developer tool, it's not even listed inside there.



      But for some odd reasons on some pages the footer becomes visible and is then also listed in the developer tool, like it normally should.



      My initial thought was that an old scaffold.scss file was causing that and i removed the file entirely, however, that didn't made any changes at all.



      I have no errors whatsoever. Never had this kind of issue before. I've searched my app.scss file for any .footer classes, body, html or any other classes that could overwrite the css from bootstrap, but couldn't find anything (used search tool in vscode).



      EDIT:



      It seems like my html and the body is only 760px in height, however, the main is full width (over 2000px).



      I've tried to add html, body  height: 100%; , but even with that height is still just 760px in height. That seems to be the issue, since the pages that show the footer are not higher than 760px.



      Any ideas what could cause that problem?










      share|improve this question
















      so i have a pretty normal setup inside my application.html.erb file:



      <html class="h-100">

      !head, title, scripts, stylesheets removed for this example here on stackoverflow!

      <body class="d-flex flex-column h-100">



      <!-- Dropdown Structure -->
      <header>

      <%= render 'shared/nav' %>
      <div class="container">
      <%= render partial: 'shared/message' %>
      </div>

      </header>

      <main role="main" class="flex-shrink-0">
      <%= yield %>
      </main>

      <footer class="footer mt-auto py-3">
      <div class="container">
      <h3>hello</h3>
      </div>
      </footer>
      </body>




      That looks good to me. However, the footer is not visible! In fact, it completely disappears when i visit a page. When i inspect the footer via developer tool, it's not even listed inside there.



      But for some odd reasons on some pages the footer becomes visible and is then also listed in the developer tool, like it normally should.



      My initial thought was that an old scaffold.scss file was causing that and i removed the file entirely, however, that didn't made any changes at all.



      I have no errors whatsoever. Never had this kind of issue before. I've searched my app.scss file for any .footer classes, body, html or any other classes that could overwrite the css from bootstrap, but couldn't find anything (used search tool in vscode).



      EDIT:



      It seems like my html and the body is only 760px in height, however, the main is full width (over 2000px).



      I've tried to add html, body  height: 100%; , but even with that height is still just 760px in height. That seems to be the issue, since the pages that show the footer are not higher than 760px.



      Any ideas what could cause that problem?







      html css ruby-on-rails bootstrap-4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 21 at 16:06







      Prometheus

















      asked Mar 21 at 15:55









      PrometheusPrometheus

      360211




      360211






















          1 Answer
          1






          active

          oldest

          votes


















          0














          For anyone running into this same kind of issue:



          I've simply moved a few scripts under the <%= yield %>. For some reasons, they were hiding my footer. One of the scripts initializes a sticky chat bar at the bottom, i suspect this particular script is causing the problem. By moving all suspected scripts into the main part, the footer is now finally rendered!



          Updated main part (removed scripts for showcase purposes):



          <main role="main" class="flex-shrink-0">
          <%= yield %>

          <script></script>

          </main>


          Greetings!






          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%2f55284441%2frails-bootstrap-footer-disappears%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            For anyone running into this same kind of issue:



            I've simply moved a few scripts under the <%= yield %>. For some reasons, they were hiding my footer. One of the scripts initializes a sticky chat bar at the bottom, i suspect this particular script is causing the problem. By moving all suspected scripts into the main part, the footer is now finally rendered!



            Updated main part (removed scripts for showcase purposes):



            <main role="main" class="flex-shrink-0">
            <%= yield %>

            <script></script>

            </main>


            Greetings!






            share|improve this answer



























              0














              For anyone running into this same kind of issue:



              I've simply moved a few scripts under the <%= yield %>. For some reasons, they were hiding my footer. One of the scripts initializes a sticky chat bar at the bottom, i suspect this particular script is causing the problem. By moving all suspected scripts into the main part, the footer is now finally rendered!



              Updated main part (removed scripts for showcase purposes):



              <main role="main" class="flex-shrink-0">
              <%= yield %>

              <script></script>

              </main>


              Greetings!






              share|improve this answer

























                0












                0








                0







                For anyone running into this same kind of issue:



                I've simply moved a few scripts under the <%= yield %>. For some reasons, they were hiding my footer. One of the scripts initializes a sticky chat bar at the bottom, i suspect this particular script is causing the problem. By moving all suspected scripts into the main part, the footer is now finally rendered!



                Updated main part (removed scripts for showcase purposes):



                <main role="main" class="flex-shrink-0">
                <%= yield %>

                <script></script>

                </main>


                Greetings!






                share|improve this answer













                For anyone running into this same kind of issue:



                I've simply moved a few scripts under the <%= yield %>. For some reasons, they were hiding my footer. One of the scripts initializes a sticky chat bar at the bottom, i suspect this particular script is causing the problem. By moving all suspected scripts into the main part, the footer is now finally rendered!



                Updated main part (removed scripts for showcase purposes):



                <main role="main" class="flex-shrink-0">
                <%= yield %>

                <script></script>

                </main>


                Greetings!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 21 at 16:13









                PrometheusPrometheus

                360211




                360211





























                    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%2f55284441%2frails-bootstrap-footer-disappears%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

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현