Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


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

!!!!------ REMEMBER --------!!!!
on Flexyscore 
<section id="boxes">
    <div class="container containervolley"><!-- or class="container containerpingpong" -->
        <div class="sgrlogo" style="background: url( 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 class="box boxservice boxawayservice">
            <span id="awayservice" class="noservice"></span>


                /* 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 ( ---*/
@import url('');

/* 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 */
  padding: 0 2vw 0 5vw;

/*with this two pseudo element (:after) we can insert rectangular elements near names */
.containervolley .boxhometeam:after, .containervolley .boxawayteam:after {
  display: block; 
  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(;

/*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 {

/* The positioning of the elements is dictated by a grid. You can find a great guide here: */ 
.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;}