Skip to content

Commit

Permalink
moving side bar
Browse files Browse the repository at this point in the history
  • Loading branch information
iLikeGrape committed Nov 15, 2024
1 parent 71917ac commit 8aa9a2c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
38 changes: 20 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@
<link rel="stylesheet" href="styles.css"
</head>
<body>
<div id="gameContainer">
<h1>Tic Tac Toe</h1>
<div id="cellContainer">
<div cellIndex="0" class="cell"></div>
<div cellIndex="1" class="cell"></div>
<div cellIndex="2" class="cell"></div>
<div cellIndex="3" class="cell"></div>
<div cellIndex="4" class="cell"></div>
<div cellIndex="5" class="cell"></div>
<div cellIndex="6" class="cell"></div>
<div cellIndex="7" class="cell"></div>
<div cellIndex="8" class="cell"></div>
<div id="container">
<div id="gameContainer">
<h1>Tic Tac Toe</h1>
<div id="cellContainer">
<div cellIndex="0" class="cell"></div>
<div cellIndex="1" class="cell"></div>
<div cellIndex="2" class="cell"></div>
<div cellIndex="3" class="cell"></div>
<div cellIndex="4" class="cell"></div>
<div cellIndex="5" class="cell"></div>
<div cellIndex="6" class="cell"></div>
<div cellIndex="7" class="cell"></div>
<div cellIndex="8" class="cell"></div>
</div>
<h2 id="statusText"></h2>
<button id="restartBtn">Restart</button>
</div>
<h2 id="statusText"></h2>
<button id="restartBtn">Restart</button>
<ul>
<li><a href=spaceinvaders.html>Space Invaders</a></li>
<li><a href=index.html>Tic Tac Toe</a></li>
<script src="index.js"></script>
</div>
<ul>
<li><a href=spaceinvaders.html>Space Invaders</a></li>
<li><a href=index.html>Tic Tac Toe</a></li>
<script src="index.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
grid-template-columns: repeat(3, auto);
width: 225px;
margin: auto;
}
.container{
display:flex;
}

0 comments on commit 8aa9a2c

Please sign in to comment.