Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

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


!!!!------ REMEMBER --------!!!!
on Flexyscore 
YOU WILL NOT BE ABLE TO MODIFY HTML PART! -->
<section id="boxes">
<div class="container containertennis">
  <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 labelgames">Gm</div>
  <div class="box boxhometeam" id="team_1">First Player</div>
  <div class="box numbers boxhomepoints" id="points_1">30</div>
  <div class="box numbers boxhomegames" id="game_1">2</div>
  <div class="box boxawayteam" id="team_2">Second Player</div>
  <div class="box numbers boxawaypoints" id="points_2">15</div>
  <div class="box numbers boxawaygames" id="game_2">1</div>
  <div class="box boxservice boxhomeservice"><span id="homeservice"></span></div>
  <div class="box boxservice boxawayservice"><span id="awayservice" class="okservice"></span></div>
  <div class="box boxset boxon" id="set_1_points_1">6</div>
  <div class="box boxset boxon" id="set_1_points_2">1</div>
  <div class="box boxset boxon" id="set_2_points_1">4</div>
  <div class="box boxset boxon" id="set_2_points_2">6</div>
  <div class="box boxset boxon" id="set_3_points_1">6</div>
  <div class="box boxset boxon" id="set_3_points_2">3</div>
  <div class="box boxset boxon" id="set_4_points_1">3</div>
  <div class="box boxset boxon" id="set_4_points_2">6</div>
  <div class="box boxset boxon" id="set_5_points_1">6</div>
  <div class="box boxset boxon" id="set_5_points_2">1</div>
</div>
</section>
              
            
!

CSS

              
                /* INSTRUCTION and example for customize TENNIS 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 */

/* THIS control the size of all caracters, use vw units for mantein responsive layout */
.containertennis {
  font-size: 6vw;
}

/* THIS insert a Big Bold Ball in service signal */
.containertennis .okservice {
  background: url(https://www.flexyscore.net/folder/tennisball.svg);
  transform: translate(-50%, -50%) scale(2);
}

.box, .label, .sgrlogo:before {
  background: #3d9f00;
  color: #194200;
}
.boxset {
  border-left: solid 2px #dec405;
}

.labelgames, .boxhomegames, .boxawaygames {
  background: #51d200;
  color: #d24b00;
}

.labelpoints, .boxhomepoints, .boxawaypoints {
  color: #FCD600;
}

.boxhometeam, .boxawayteam {
  background: #296c00;
  color: #FCD600;
}


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

JS

              
                
              
            
!
999px

Console