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. 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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <div class="bloc">
  <div class="select">
      <option>Vous êtes plutôt ?</option>
      <option value="1">PlayStation</option>
      <option value="2">Xbox</option>
      <option value="3">Nintendo</option>
      <option value="4">PC Master Race</option>



/* Ajout d'une petire image de fond juste pour le fun */
body {
  font-family: 'Lato', sans-serif;
  color: #555555;
  background: url(;
  background-repeat: no-repeat;
  background-size: cover; 

/*Pas important, juste pour positioner la liste déroulante en milieude page */
.bloc {
  display: flex;
  flex-direction: column;
  align-items : center;
  justify-content: center;
  height: 100vh;

/*Réinitilaisation de la liste déroulante*/
select {
  appearance: none;
  outline: 0;
  border: 0 !important;
  background: #F9F9F9;
  background-image: none;
  box-shadow: none;
  font-size: 1.2em;

/*Ajout des couleurs de fond pour chaque option */
select option[value="1"] {
  background: #2E6DB4;
  color: white;

select option[value="2"] {
  background: #107C11;
  color: white;

select option[value="3"] {
  background: #E70009;
  color: white;

select option[value="4"] {
  background: black;
  color: white;

/* Mise en forme de la div .select*/
.select {
  position: relative;
  width: 350px;
  height: 45px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #CED4DA;

/* Mise en forme de la balise select*/
select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding-left: 15px;
  color: #555555;
  cursor: pointer;

/* Mise en place de la flèche */
.select::after {
  content: '\276F';
  position: absolute;
  top: 20%;
  right: 0;
  padding: 0 15px;
  background: white;
  pointer-events: none;
  transform: rotate(90deg);
  font-size: 1.5em;
  background: #F9F9F9;

.select:hover::after {
  color: #FA6141;