Skip to content

Commit

Permalink
Improving responsive design of 99 bottles
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGinnane committed Apr 13, 2024
1 parent 0cde833 commit 5bdccb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions labs/lab9/99-bottles.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ <h1 id="lab9-title" class="display-1">99 Bottles of Beer</h1>
</div>

<!-- Main Body -->
<div class="row justify-content-evenly flex-grow-1 col-4">
<div id="99-bottles-column" class="mx-auto">
<div class="row justify-content-center align-items-center flex-grow-1" style="padding-bottom: 50px">
<div id="ninetynine-bottles-column" class="col-sm-8 col-lg-4 col-12 my-auto justify-content-evenly">
<!-- Content will be loaded using javascript -->
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion scripts/99-bottles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', function(){
let body = document.getElementById("lab9-column");
let body = document.getElementById("ninetynine-bottles-column");
let newLine = "";
let originalBottles = 99;
let bottles = originalBottles;
Expand Down
3 changes: 1 addition & 2 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@
padding-bottom: 10px;
}

#99-bottles-column {
#ninetynine-bottles-column {
border-left: 5px solid navy;
width: 500px;
font-size: 18px;
margin-bottom: 50px;
}
Expand Down

0 comments on commit 5bdccb6

Please sign in to comment.