Search
 
SCRIPT & CODE EXAMPLE
 

CSS

footer at bottom of body

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}
Comment

add footer at bottom of page

#footer {
   position: fixed;
   bottom: 0;
   width: 100%;
   height: 60px;   /* Height of the footer */
   background: #6cf;
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to make div width auto adjust 
Css :: css grid repeat 
Css :: why do we need hexadecimal number system 
Css :: css text gradient 
Css :: centre align in position absolute 
Css :: kerning css 
Css :: css horizontal linear gradient 
Css :: how to disable margin collapsing 
Css :: svg image shadow css 
Css :: background image syntax in css if it is in folder 
Css :: force aspect ratio div 
Css :: remove all default styles from input 
Css :: how to set div background image 
Css :: css after not working 
Css :: font. to be thinner css 
Css :: vertical align text in div bottom 
Css :: repeating-linear-gradient generator 
Css :: triangle css 
Css :: css good font color 
Css :: rem vs em 
Css :: svg stroke color 
Css :: Pack lines toward the center of the flex container 
Css :: how to define global font in css 
Css :: placeholder color in css 
Css :: how to rotate image in css 
Css :: css textarea set max characters 
Css :: table data max width 
Css :: scss exceeded maximum budget. Budget 7.00 kB was not met by 841 bytes with a total of 7.82 kB. 
Css :: over to remove padding css 
Css :: how to make the header stay on the top of the page in html 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =