sticky-footer

Angular Material fixed toolbar AND sticky footer

瘦欲@ 提交于 2019-11-30 03:52:27
I have been beating my head against this issue for some time now and sort of came up with a solution. I would like a fixed toolbar (navbar) as well as a sticky (floating) footer. The footer should float at the bottom of the main section but be sticky to the bottom when there is no content. It seems that I can do one or the other but not both. With this method the toolbar is fixed but the footer isn't sticky. It butts up to the toolbar when the main section is empty. <body ng-controller="MainCtrl" layout="row"> <div layout="column" flex> <md-toolbar class="md-medium-tall"> <div class="md

Footer position - bottom and center [duplicate]

こ雲淡風輕ζ 提交于 2019-11-29 23:16:36
问题 This question already has answers here : How to make a footer fixed in the page bottom (8 answers) Closed 6 years ago . I am writing a webpage with a fixed footer on the bottom of the page. The content of the page has a specific width and is centered. The footer also has a specific width and must be centered. Issues: I cant use postiton: fixed - footer is not centered Page content is loaded dynamically from a database, so I can't know the exact height If the browser window is very small, the

3 column css layout with sticky footer - columns 100% height?

久未见 提交于 2019-11-29 23:11:38
问题 With combining two examples I've found: http://alistapart.com/article/holygrail http://mystrd.at/modern-clean-css-sticky-footer/ I have come up with this layout. http://jsfiddle.net/xVuh5/ And it is great but I would like to have the 3 columns 100% height. Can anyone help please? Thank you Body of the html and css script as asked by the SO editor validation for including jsfiddle in the text: <div id="header">This is the header.</div> <div id="container"> <div id="center" class="column"> <h1

UIScrollView with sticky footer UIView and dynamic height content

有些话、适合烂在心里 提交于 2019-11-29 22:40:43
Challenge time! Imagine we have 2 content views: UIView with dynamically height content (expandable UITextView) = RED UIView as a footer = BLUE This content is inside a UIScrollView = GEEN How should I structure and handle the constraints with auto-layout to archive all the following cases? I am thinking next basic structure to start with: - UIScrollView (with always bounce vertically) - UIView - Container - UIView - DynamicHeightContent - UIView - Sticky Footer Keyboard handling should be done by code watching notifications UIKeyboardWillShowNotification and UIKeyboardWillHideNotification .

Display footer in PrimeFaces template, when fullPage of p:layout is set to false

大憨熊 提交于 2019-11-29 08:21:48
Footer is not displayed (actually, it is incorrectly displayed on top of the page), when fullPage is set to false in PrimeFaces template . <p:layout fullPage="false"> <p:layoutUnit position="north" size="135"> <!--Put north content here, if any--> </p:layoutUnit> <p:layoutUnit position="west" size="225" header="Menu Item" collapsible="true"> <!--Put west content here, if any--> </p:layoutUnit> <p:layoutUnit position="center" size="2500" maxSize="2500"> <!--Put center content here, if any--> </p:layoutUnit> <p:layoutUnit position="east" size="175"> <!--Put east content here, if any--> </p

Footer in Bootstrap, that extends with content or sticks to the bottom

末鹿安然 提交于 2019-11-29 05:14:11
I have been looking for a way to add a footer to a Twitter Bootstrap 3 project I am working on. What I want is for the footer to stick to the bottom of the page when the content is too short to fill out the screen, but get pushed down by content when the content does fill the screen. All solutions I have found & tried so far, has either not worked, had the footer ALWAYS shown, or had the footer below the page, so it was only visible upon scrolling. Thanks in advance! Update 2017 There is difference between the "fixed" footer and "sticky" footer... you want the sticky footer. Bootstrap 3 Use

How can I force my footer to stick to the bottom of any page in CSS?

徘徊边缘 提交于 2019-11-29 02:56:57
This is my code: #footer { font-size: 10px; position:absolute; bottom:0; background:#ffffff; } I've no idea what is wrong with this - can anyone help? EDIT: For some more clarity on what's wrong: The footer is displayed on the bottom as expected when the page loads. However, when the web page's height is > than the dimensions on the screen such that a scroll bar appears, the footer stays in that same location. That is to say, when the height of the page is <= 100%, the footer is at the bottom. However, when the page height is >100%, the footer is NOT at the bottom of that page, but at the

How to make a fluid sticky footer

瘦欲@ 提交于 2019-11-29 00:24:47
I'm looking for a solution to have a sticky footer which height may be dependent on the width of the browser. Sticky footers in fluid designs are not all that trivial. I've found hints, discussions and solutions to implement sticky footers. However, all these are dependent on a fixed and known height of the footer. In my case, the height of the footer contains text and the number of lines is dependent on the width of the screen. Rather than making al sorts of media queries and building some work aorund, I'm would prefer a clean CSS solution in which the sticky footer auto adapts when the width

How to Make the Content 100% height and equal height columns in this layout?

こ雲淡風輕ζ 提交于 2019-11-28 14:09:33
I have this layout where the my_menu is fixed at the top, followed by header, followed by content with 960px and centered, in which 3 columns have been floated left and finally followed by a sticky footer. The problem is How to make the content stretch to the 100% height even if there is not enough content in any one of the child columns? How make the 3 columns equal height regardless of any column's content? Maintain the sticky footer! Pure CSS, No JavaScript, No JQuery! The HTML Markup <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Document Title</title> <link rel=

How to do a sticky footer and still be able to do scrollable flexbox content?

痞子三分冷 提交于 2019-11-28 12:05:07
问题 I'm trying to achieve the sticky footer (flexbox version). However, I'm unable to find a working solution if I also want the ability to have scrollable content inside a flex: 1 div (which requires parents to have height: 100% ). Here's a fiddle to demonstrate the problem: https://jsfiddle.net/gfaqLh42/6/ As you can see, the red area is scrollable (with a min-height: 300px ). Notice the footer is offscreen even though the viewport is not less than the red area's min-height + blue area. Is