How do I create sticky footers - the other kind of sticky? [duplicate] - html

This question already has answers here:
Problems with CSS sticky footer
(12 answers)
Closed 8 years ago.
What I mean is that a footer will always be at the bottom of the browsing window, even if there is a lot of content and normally the footer will be out of view, not the usual "sticky footer" where the footer will always be after the content.
I could achieve this with frames, but how would I do it in a cleaner way with CSS?

.the-other-kind-of-sticky-footer { position:fixed; bottom:0; }

Related

Footer relative is not always at the bottom of the page [duplicate]

This question already has answers here:
How do you get the footer to stay at the bottom of a Web page?
(32 answers)
Closed 2 years ago.
I am building a website with a relative footer (first picture) but as you can see the footer is not placed at the bottom when there is not enough content on the page.
I could resolve it with position absolute but then the content of the page is hidden behind the footer (picture 2).
My question
How can I put the footer on the bottom of the page but still push it down when there is more content added to the page.
Thank you for the help.
You can use position: fixed; bottom:0; for the footer and it is always at the bottom of your screen.

Custom HTML,CSS Scrollbar [duplicate]

This question already has answers here:
CSS customized scroll bar in div
(20 answers)
Closed 4 years ago.
Looking for scrollbar that has no inside body, only arrows should available to scroll content. Is it possible? In the snippet, the body has a scrollbar with up and down arrow, I don't want a mid area of scrollbar, just custom arrows that do the same thing(maybe it's called scroll thumb or something else don't know).
body {
height:700px;
overflow:scroll;
}
<body>Div with some content</body>
[here](https://codepen.io/webrexRavi/pen/XxOEZz)
icreated pen for it you can see it here

i used flexbox css but it makes horizontal scrolling [duplicate]

This question already has answers here:
Flexbox makes horizontal scrolling
(2 answers)
Closed 5 years ago.
Before read my question, it will be better that you watch my site enter link description here http://www.google.com
I want to make Responsive website
So i used flexbox
But some markup lines create a horizontal line for scrolling.
(plz watch red line)
I don't know why it make horizontal scrolling
you can reduce image width or using code:
.dittomall-banner > img { width: 33.33%;float:right }

Example Link with padding or margin? [duplicate]

This question already has answers here:
offsetting an html anchor to adjust for fixed header [duplicate]
(28 answers)
Closed 8 years ago.
I'm working on a site with a Sticky Navigation and when I use
Example Link
the Sticky Nav overlaps the top of the #example.
The Nav height is 70px so I'm wondering if there's any way to link to #example but start 70px down. I'd rather not create an additional ID since it will probably make things a mess.
Any ideas?
You can use
window.scrollBy(0,70);
to scroll the window 70px down.
To have it actually scroll after linking, you have to change your link such that it executes a javascript relocation before scrolling: window.location='#example'; window.scrollBy(0,70);
That is the job of #example. It moves you to the location of the element with that id.
You can use jQuery to animate your elements to slideUp or your window to scrollTo 70px down.

Sticky footer with a non-static web page help [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
CSS sticky footer
My page has content where as users submit content, the page length increases. This is a problem for traditional designs for sticky footers as they tend to stick at the original location and end up just floating in the middle of the page instead.
Does anyone have any tips or tricks to make a sticky footer that will keep it down at the bottom even when the content enlarges the page size?
Thanks in advance.
Credit to AlienWebguy... after looking at the strucutre of my webpage we figured out adding a clear: both to a standard footer CSS fixed it.
EDIT: This is not a true "Sticky Footer" but this is what solved the OP's issue in this instance. For true sticky footer application try this:
Yep you'll want to use this CSS:
#sticky_footer {
position:relative;
clear:both;
bottom:0;
height:100px;
width:100%;
}
Used like this:
<body>
...
<div id="sticky_footer"></div>
</body>
I've had great success with this sticky footer implementation: http://ryanfait.com/sticky-footer/