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
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
add a comment |
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
add a comment |
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
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
html css ruby-on-rails bootstrap-4
edited Mar 21 at 16:06
Prometheus
asked Mar 21 at 15:55
PrometheusPrometheus
360211
360211
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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!
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!
add a comment |
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!
add a comment |
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!
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!
answered Mar 21 at 16:13
PrometheusPrometheus
360211
360211
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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