css footer not displaying at the bottom of the page

后端 未结 9 1424
攒了一身酷
攒了一身酷 2021-01-31 21:56

this is my code for my footer, how can i make it display at the bottom of the page rather than right underneath my content above it?

/*footer */
#footer .column          


        
9条回答
  •  情歌与酒
    2021-01-31 22:22

    Fixed your footer in bottom with cool effect
    Check full page design in jsfiddle Jsfiddle

    
    

    H1

    h2

    h3

    h4

    h5
    h6

    H1

    h2

    h3

    h4

    h5
    h6

    H1

    h2

    h3

    h4

    h5
    h6

    kulbhushan charaya

    and css is

    body {
        background: #ffffff none repeat scroll 0 0;
        padding:40px 0;
    }
    header{
      position:fixed;
      top:0;
      z-index:999;
      left:0;
      width:100%;
      background:#fff;
      border-bottom:1px solid #ccc;
    }
    header ul li {
      display: inline-block;
      list-style: outside none none;
      padding: 5px;
    }
    header ul li a {
        color: #000000;
        text-decoration: none;
    }
    footer {
      bottom: 0;
      left: 0;
      position: fixed;
      text-align: center;
      width: 100%;
      z-index: -1;
    }
    footer h1 {
      margin: 0;
    }
    .wrapper {
      background: #ffffff;
      padding: 0 15px;
      z-index: 1;
    }
    

提交回复
热议问题