html - Div Background not showing up what's the solution? -
why background color in circles class not working? been trying 5 minutes what's wrong ?
html:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>simon game</title> <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css"> <link rel="stylesheet" href="simon game.css"> </head> <body> <div class="container"> <div class="row"> <div class="col s6"> <div id="circle1" class="circles"></div> <div id="circle2" class="circles"></div> </div> <div class="col s6"> <div id="circle3" class="circles"></div> <div id="circle4" class="circles"></div> </div> </div> </div> <script src="simon game.js"></script> </body> </html>
css:
.circles { color: black; background: black; }
if container doesn't have content should provide fixed height , width in order see styles, try this
.circles { color: black; background: black; width: 50px; height:50px; }
Comments
Post a Comment