<!-- HERE the original HTML code of the Volleyball or Tabletennis Scoreboard. 


!!!!------ REMEMBER --------!!!!
on Flexyscore 
YOU WILL NOT BE ABLE TO MODIFY HTML PART! -->
<body>
<section id="boxes">
    <div class="container containervolley"><!-- or class="container containerpingpong" -->
        <div class="sgrlogo" style="background: url(https://www.live.flexyscore.net/logofs.svg) no-repeat center;"></div>
        <div class="label labelpoints">Pt</div>
        <div class="label labelsets">Set</div>
        <div class="box boxhometeam" id="team_1">West Team</div>
        <div class="box numbers boxhomepoints" id="points_1">25</div>
        <div class="box numbers boxhomesets" id="set_1">2</div>
        <div class="box boxawayteam" id="team_2">East Team</div>
        <div class="box numbers boxawaypoints" id="points_2">20</div>
        <div class="box numbers boxawaysets" id="set_2">2</div>
        
        <div class="box boxservice boxhomeservice">
            <span id="homeservice" class="okservice"></span>
        </div>
        
        <div class="box boxservice boxawayservice">
            <span id="awayservice" class="noservice"></span>
        </div>
    </div>
</section>
<body>
/* INSTRUCTION and example for customize VOLLEYBALL and TABLETENNIS 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=Alfa+Slab+One&display=swap');

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

/* this change the logo background color */
.containervolley .sgrlogo:before {
  background: #CF00CC !important;
}

/*this change background colors of team names and ball changing module*/
.containervolley .boxhometeam, .containervolley .boxawayteam, .containervolley .boxservice {
  background: #CF00CC;
}

/*this apply font, change size only on teams names and set caracter dimension (use "em" value to keep responsive layout) */
.containervolley .boxhometeam, .containervolley .boxawayteam {
  font-family: 'Alfa Slab One', cursive;
  font-size: .8em;
  color: white;
  /* these are useful for next step */
  position:relative;
  padding: 0 2vw 0 5vw;
}

/*with this two pseudo element (:after) we can insert rectangular elements near names */
.containervolley .boxhometeam:after, .containervolley .boxawayteam:after {
  content:""; 
  display: block; 
  position:absolute; 
  top:0; left:0; bottom:0; 
  width: 3vw;
}
/* and now we can give it a color */
.containervolley .boxhometeam:after {
  background: #FFC300;
}
.containervolley .boxawayteam:after {
  background: #1C73E8;
}

/*this insert an image on ball-chamnge signal*/
.containervolley .okservice {
  background: url(https://www.flexyscore.net/folder/volleyball.svg);
}

/*this change the background color and font color of POINTS column*/
.labelpoints, .boxhomepoints, .boxawaypoints {
  background: #CF00CC;
  color: white;
}

/*this change the background color and font color of SET column*/
.labelsets, .boxhomesets, .boxawaysets {
  background: #EF93FF;
  color: #CF00CC;
  font-weight: bold;
}

/*if you don't want the labels of Set and points, you can hide them*/
.labelsets, .labelpoints {
  display:none;
}

/* ELEMENT POSITIONING */
/* The positioning of the elements is dictated by a grid. You can find a great guide here: https://css-tricks.com/snippets/css/complete-guide-grid/ */ 
.containervolley {
  grid-template: auto / 18vw auto 7vw 10vw 10vw;
}

/*this change the position of change-ball module */
.containervolley .boxservice {
  grid-column: 3/4;
}

.containervolley .boxhometeam, .containervolley .boxawayteam {
  grid-column: 2/3;
}

/*this swap the position of Points and Set*/
.labelpoints, .boxhomepoints, .boxawaypoints {
  grid-column: 5/6;
}

.labelsets, .boxhomesets, .boxawaysets {
  grid-column: 4/5;
}


/*this insert some round corners*/
.boxhomepoints {
  border-top-right-radius: 3vw;
}
.boxawaypoints {
  border-bottom-right-radius: 3vw;
}
.containervolley .sgrlogo:before {
  border-bottom-left-radius: 5vw;
  border-top-left-radius: 5vw;
}


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

External CSS

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

External JavaScript

This Pen doesn't use any external JavaScript resources.