Bootstrap: make the footer fixed to the bottom
This commit is contained in:
parent
89b182b3be
commit
52e102e63b
1 changed files with 27 additions and 1 deletions
|
@ -15,6 +15,32 @@
|
|||
crossorigin="anonymous"></script>
|
||||
|
||||
<title>{{ AntCMSTitle }}</title>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#wrap {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
#main {
|
||||
overflow: auto;
|
||||
padding-bottom: 150px;
|
||||
/* this needs to be bigger than footer height*/
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: relative;
|
||||
margin-top: -150px;
|
||||
/* negative value of footer height */
|
||||
height: 150px;
|
||||
clear: both;
|
||||
padding-top: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -52,4 +78,4 @@
|
|||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue