Please check the below link to check the code in HTML and CSS and check the result. Please, I need the rectangular in the result to be less wide.
https://jsfiddle.net/Ahmed_abdelmeguid/6L8vbutw/5/ [enter image description here][1]
this is CSS code
.tictac_3 > ul {
width: 50%;
height: 20px;
display: flex;
flex-wrap: wrap;}
.tictac_3 > li {
width: 30%;
height: 30px;
font-size: 30px;
font-family: sans-serif;
background-color:lightblue;
margin: 5px;
list-style: none;
text-align: center;
float: left;
}
and below the HTML code
<ul class="tictac_3">
<li class=".tictac_3">X
<li class=".tictac_3">
<li class=".tictac_3">O
<li class=".tictac_3">
<li class=".tictac_3">X
<li class=".tictac_3">O
<li class=".tictac_3">X
<li class=".tictac_3">O
<li class=".tictac_3">
</ul>
you can check the code and the result that I want to modify it in the below link That I provided it in the start of my question https://jsfiddle.net/Ahmed_abdelmeguid/6L8vbutw/5/