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 SOCCER HOCKEY or RUGBY Scoreboard. 


!!!!------ REMEMBER --------!!!!
on Flexyscore 
YOU WILL NOT BE ABLE TO MODIFY HTML PART! -->
<section id="boxes">
<div class="container containersoccer">
  <div class="sgrlogo" style="background: url(https://www.flexyscore.net/logofs.png) no-repeat center;"></div>
  <div class="box boxtimer" id="timer">12:35</div>
  <div class="box boxhometeam" id="team_1">West Team</div>
  <div class="box boxhomepoints" id="points_1">3</div>
  <div class="space">-</div>
  <div class="box boxawaypoints" id="points_2">2</div>
  <div class="box boxawayteam" id="team_2">East Team</div>
  <div class="box boxmoment boxovertimeoff" id="ovt"><span><em id="overtime">T</em><strong id="moment">1</strong></span></div>
</div>
</section>
              
            
!

CSS

              
                /* INSTRUCTION and example for customize SOCCER HOCKEY or RUGBY 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 (SOCCER = containersoccer / BASKETBALL = containerbasket etc.. read them with your browser inspector). You can use them for override styles */

/*this change font and background color of logo and result */
.boxhomepoints, .space, .boxawaypoints, .sgrlogo:before {
  background:#555;
  color:#fff;
}

/*this change font of Team names */
.boxhometeam, .boxawayteam, .boxhomepoints, .space, .boxawaypoints {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4em;
  font-weight: bold;
  position:relative;
}

/*this insert team badges */
.boxhometeam:before, .boxawayteam:before {
  content:"";
  position:absolute;
  width: 7vw;
  height: 8vw;
}
.boxhometeam {
  justify-content: flex-end; padding-right:9vw;
}
.boxhometeam:before {
  right:1vw;
  background: url(https://img.wh.sportingpulseinternational.com/11ad3163e8b7d3890dd91c477c36492bS1.png) no-repeat center; 
  background-size:8vw;
}

.boxawayteam {
  justify-content: flex-start; padding-left:9vw;
}
.boxawayteam:before {
  left:1vw;
  background: url(https://img.wh.sportingpulseinternational.com/6fb85e2b98beeb1fd7e9ecdf54b318ecS1.png) no-repeat center; 
  background-size:6vw;
}

.boxhomepoints, .boxhometeam {
  border-left: solid 1vw #999;
}
.boxawaypoints, .boxawayteam {
  border-right: solid 1vw #999;
}

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

JS

              
                
              
            
!
999px

Console