<!-- HERE the original HTML code of the BASKETBALL Scoreboard. 


!!!!------ REMEMBER --------!!!!
on Flexyscore 
YOU WILL NOT BE ABLE TO MODIFY HTML PART! -->
<section id="boxes">
<div class="container containerbasket">
  <div class="sgrlogo" style="background: url(https://seeklogo.com/images/N/nba-logo-41668C66DB-seeklogo.com.png) no-repeat center; background-size:50% !important;"></div>
  <div class="box boxtimer" id="timer">10:00</div>
  <div class="box boxhometeam" id="team_1">IND</div>
  <div class="box boxhomepoints" id="points_1">34</div>
  <div class="space">-</div>
  <div class="box boxawaypoints" id="points_2">32</div>
  <div class="box boxawayteam" id="team_2">TOR</div>
  <div class="box boxmoment boxovertimeoff" id="ovt"><span><em id="overtime">Q</em><strong id="moment">1</strong></span></div>
  <div class="box secondliners boxfouls boxhomefouls" id="fouls_1">7</div>
  <div class="box secondliners boxfouls boxawayfouls" id="fouls_2">12</div>
  <div class="box secondliners boxtimeouts boxhometimeouts" id="timeouts_1">1</div>
  <div class="box secondliners boxtimeouts boxawaytimeouts" id="timeouts_2">2</div>
  <div class="box secondliners boxbonus boxhomebonus boxbonuson" id="bonus_1">BONUS</div>
  <div class="box secondliners boxbonus boxawaybonus boxbonuson" id="bonus_2">BONUS</div>
</div>
</section>
/* INSTRUCTION and example for customize BASKETBALL scoreboard:
Each element has one or more classes, so you can control one or more elements at the same time.
On the left you can read every single element with his class */

/*--- First step - FONTS: CSS involves embedding fonts at the beginning of the document. You can import and use webfont, for example here we imported a Google font (https://fonts.google.com/) ---*/
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Every scoreboard has a unique container (VOLLEYBALL = containervolley / BASKETBALL = containerbasket etc.. read them with your browser code inspector). You can use them for override styles */



.containerbasket {grid-template: auto / repeat(6, 1fr); font-size:10vw; font-family: 'Bebas Neue', cursive;}

.sgrlogo {grid-row: 1/2; grid-column: 1/3;}
.boxmoment {grid-row: 1/2; grid-column: 3/4;}
.boxtimer {grid-row: 1/2; grid-column: 4/6;}
.boxhometeam {grid-row: 2/3; grid-column: 1/3;}
.boxhomepoints {grid-row: 2/3; grid-column: 3/4;}
.boxawayteam {grid-row: 2/3; grid-column: 4/6;}
.boxawaypoints {grid-row: 2/3; grid-column: 6/7;}

.boxhomefouls {grid-row: 3/4; grid-column: 2/3;}
.boxhometimeouts {grid-row: 3/4; grid-column: 1/2;}
.boxhomebonus {grid-row: 3/4; grid-column: 3/4;}

.boxawayfouls {grid-row: 3/4; grid-column: 5/6;}
.boxawaytimeouts {grid-row: 3/4; grid-column: 4/5;}
.boxawaybonus {grid-row: 3/4; grid-column: 6/7;}

.boxhomepoints, .boxawaypoints {transform: none;}
.space {display:none;}
.box, .sgrlogo:before {border-radius: 0 !important;}

.containerbasket:after {content: ""; background:url(https://www.flaticon.com/svg/static/icons/svg/33/33838.svg) no-repeat center; grid-row:1/2; grid-column: 6/7; background-size: 200%; filter: invert(.5);}

.containerbasket {box-sizing: border-box; border: solid 1vw #666;}


/* this change labels of Fouls and Timeouts */
.boxfouls:before {content:"Fouls:"; font-size: .5em;}
.boxtimeouts:before {content:"Timeout:"; font-size: .5em;}
.boxbonus {display: flex; justify-content: center; align-items: center; font-size:.4em;}

.boxhometeam, .boxawayteam {position: relative; justify-content: flex-end; padding: 0 2vw;}
.boxhomepoints, .boxawaypoints {justify-content: center; padding: 0 2vw; text-align:center;}



/*  INDIANA Styles */
.boxhometeam {background: linear-gradient(72deg, rgba(0,40,93,1) 0%, rgba(184,180,147,1) 38%, rgba(212,206,181,1) 41%, rgba(253,187,50,1) 100%); }
.boxhometeam:before {content:""; position:absolute; top:0; left:0; width:50%; height:100%; background:url(https://cdn.shopify.com/s/files/1/0490/0791/9253/files/Pacers-Full-Color.png) no-repeat center;background-size:60%;}
.boxhomepoints {background:#fdbb32;}

/*  TORONTO Styles */
.boxawayteam {background:linear-gradient(72deg, rgba(0,0,0,1) 0%, rgba(222,123,123,1) 39%, rgba(227,166,166,1) 41%, rgba(255,0,0,1) 100%);;}
.boxawayteam:before {content:""; position:absolute; top:0; left:0; width:50%; height:100%; background:url(https://www.nba.com/raptors/sites/raptors/files/raps-1718-mainlogo.png) no-repeat center; background-size:70%;}
.boxawaypoints {background:#ff0000;}

/*-------------------------------------------------------------------
---- UNDER: background color and a little spase from margins. PLEASE DO NOT CONSIDER THIS-*/
body {background:#666;}

External CSS

  1. https://www.live.flexyscore.net/dirette/temp/css/basket.css

External JavaScript

This Pen doesn't use any external JavaScript resources.