Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • m4lab_landing_page m4lab_landing_page
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • m4lab_landing_pagem4lab_landing_page
  • Merge requests
  • !41

MLAB-229: sticky footer

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Rosanny Sihombing requested to merge MLAB-229 into testing 4 years ago
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Add CSS to manage sticky footer.

  • Wolfgang Knopki @knopkiwg merged 4 years ago

    merged

  • Wolfgang Knopki @knopkiwg mentioned in commit 6d1b6bf2 4 years ago

    mentioned in commit 6d1b6bf2

  • Loading
  • Loading
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • testing (base)

and
  • latest version
    0c2f42a3
    1 commit, 4 years ago

2 files
+ 43
- 4

    Preferences

    File browser
    Compare changes
incl‎udes‎
headfo‎ot.html‎ +20 -3
j‎s‎
headf‎oot.js‎ +23 -1
includes/headfoot.html
+ 20
- 3
  • View file @ 0c2f42a3

  • Edit in single-file editor

  • Open in Web IDE


@@ -12,6 +12,23 @@
@@ -12,6 +12,23 @@
<link rel="stylesheet" href="../fonts/ionicons.min.css">
<link rel="stylesheet" href="../fonts/ionicons.min.css">
<link rel="stylesheet" href="../css/Testimonials.css">
<link rel="stylesheet" href="../css/Testimonials.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
 
<style>
 
@media only screen and (min-width: 768px) {
 
html {
 
position: relative;
 
min-height: 100%;
 
}
 
body {
 
margin-bottom: 120px; /* Margin bottom by footer height */
 
}
 
#homepage {
 
position: absolute;
 
bottom: 0;
 
width: 100%;
 
text-align: center;
 
}
 
}
 
</style>
</head>
</head>
<body>
<body>
@@ -124,7 +141,7 @@
@@ -124,7 +141,7 @@
<p> test test test test 123</p>
<p> test test test test 123</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<!-- p> test test test test</p>
<hr>
<hr>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
@@ -136,12 +153,12 @@
@@ -136,12 +153,12 @@
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p -->
<hr>
<hr>
</div>
</div>
<!-- footerdiv -->
<!-- footerdiv -->
<div id="homepage" class="last clear">
<div id="homepage">
<hr>
<hr>
<!-- containerdiv -->
<!-- containerdiv -->
<div class="container">
<div class="container">
js/headfoot.js
+ 23
- 1
  • View file @ 0c2f42a3

  • Edit in single-file editor

  • Open in Web IDE


@@ -140,9 +140,31 @@ function head() {
@@ -140,9 +140,31 @@ function head() {
*/
*/
function foot() {
function foot() {
 
// add styles to <head> to manage sticky footer
 
var styles = `
 
@media only screen and (min-width: 768px) {
 
html {
 
position: relative;
 
min-height: 100%;
 
}
 
body {
 
margin-bottom: 120px; /* Margin bottom by footer height */
 
}
 
#homepage {
 
position: absolute;
 
bottom: 0;
 
width: 100%;
 
text-align: center;
 
}
 
}
 
`
 
var styleSheet = document.createElement("style")
 
styleSheet.type = "text/css"
 
styleSheet.innerText = styles
 
document.head.appendChild(styleSheet)
 
let footerdiv = document.createElement('div');
let footerdiv = document.createElement('div');
footerdiv.id="homepage";
footerdiv.id="homepage";
footerdiv.classList.add("last", "clear");
footerdiv.innerHTML = "<hr>";
footerdiv.innerHTML = "<hr>";
let containerdiv = document.createElement('div');
let containerdiv = document.createElement('div');
containerdiv.classList.add('container');
containerdiv.classList.add('container');
Assignee
Wolfgang Knopki's avatar
Wolfgang Knopki
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 participants
Wolfgang Knopki
Rosanny Sihombing
Reference: root/m4lab_landing_page!41
Source branch: MLAB-229

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal