Skip to content

Commit a41426e

Browse files
committed
have improved the css
1 parent ddefd49 commit a41426e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tic-tac-toe/src/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@
1111
margin: 2px;
1212
padding: 25px;
1313
cursor: pointer;
14+
height: 50px;
15+
}
16+
.board-value{
17+
position: relative;
18+
top: 50%;
19+
left: 50%;
20+
transform: translate(-50%, -50%);
1421
}

tic-tac-toe/src/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ function App() {
7373
for (let i = 0; i < NUMBER_OF_BOXES; i++) {
7474
arr.push(
7575
<div onClick={() => handleClick(i)} className="box" key={i}>
76-
{renderBoardValue(i)}
76+
<div className="board-value">
77+
{renderBoardValue(i)}
78+
</div>
7779
</div>
7880
);
7981
}

0 commit comments

Comments
 (0)