We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddefd49 commit a41426eCopy full SHA for a41426e
tic-tac-toe/src/App.css
@@ -11,4 +11,11 @@
11
margin: 2px;
12
padding: 25px;
13
cursor: pointer;
14
+ height: 50px;
15
+}
16
+.board-value{
17
+ position: relative;
18
+ top: 50%;
19
+ left: 50%;
20
+ transform: translate(-50%, -50%);
21
}
tic-tac-toe/src/App.js
@@ -73,7 +73,9 @@ function App() {
73
for (let i = 0; i < NUMBER_OF_BOXES; i++) {
74
arr.push(
75
<div onClick={() => handleClick(i)} className="box" key={i}>
76
- {renderBoardValue(i)}
+ <div className="board-value">
77
+ {renderBoardValue(i)}
78
+ </div>
79
</div>
80
);
81
0 commit comments