css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="menu">
	<input type="checkbox" role="button" id="bouton" />
	<label for="bouton">Menu</label>
	<nav>
		<a href=".">Accueil</a>
		<a href="2.html">Lorem</a>
		<a href="3.html">Ipsum</a>
		<a href="4.html">Dolor</a>
    <a href="5.html">Sit</a>
		<span id="act">Amet</span>
    <a href="7.html">Consectetur</a>
	</nav>
</div>
<section>
  <h1>Amet</h1>
    <p><a href="https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Page_au_hasard">Les merveilles de Wikipedia :</a> Bramoullé est un patronyme breton originaire du pays du Léon, dans le Finistère. Les recherches généalogiques remontent jusqu’au XVIe siècle dans la commune de Guissény, au nord de Brest.</p>

  <p>Bramoullé est aussi un hameau dans la commune de Guissény. La commune de Guissény forme avec ses voisines la Côte des Légendes. La principale de ces légendes est celle des naufrageurs. Si les Guisséniens ne furent sans doute pas des naufrageurs, il est en revanche incontestable que leur réputation de pilleurs d'épaves n’est pas usurpée et que cette tradition remonte loin dans le temps pour se prolonger jusqu’à nos jours. On imagine aisément les guisséniens les bras dans l’eau s’affairant à piller les épaves. Certains disent ironiquement que Bramoullé viendraient de bras mouillés.</p>

  <p>Bramoullé viendrait peut-être de bras milin qui signifie grand moulin en Breton. Guissény et les communes voisines comptaient plusieurs grands moulins, notamment des moulins à marée.</p>

  <p>L’origine exacte du patronyme Bramoullé n’est pas connue aujourd’hui.<p>
</section>
            
          
!
            
              body {
  font-size: 1.25em;
  font-feature-settings: "frsp" 0, "onum" 1, "liga" 1, "dlig" 1, "ligc" 0, "hlig" 0;
  background: #fffcf2;
}
#menu, section {
  max-width: 740px;
  margin: 1.5rem auto 0;
  padding: 0 5%;
}
h1 {
  text-align: center;
}
p {
  font-family: "Linux Libertine G", serif;
}

#menu {
	text-align: center;
}

nav {
  font-size: 0
}

a {
	color: #000;
	text-decoration: none;
	font-style: italic;
}

#menu label, #menu input {
	display: none;
}

 nav a, #act {
	 font-size: 20px;
	 font-size: 1rem; /* Réinitialisation pour supprimer espaces blancs */
	 padding: 0 5px;
	 padding: 0 0.25rem;
 }

nav a:not(:first-child), #act:not(:first-child)  {
	border-left: 1px solid;
}

#act {
	font-weight: 600
}

@media screen and (max-width: 640px)
{	
  #menu label {
		display: inline-block;
		-ms-user-select: none;
		-moz-user-select: none;
		user-select: none;
		border: outset 1px;
		min-width: 75px;
	}
	#menu input:checked ~ label {
		border: inset 1px;
	}
	nav {
		height: 0;
		overflow: hidden;
		transition: .2s height ease-in-out;
	}
	input:checked ~ nav {
		height: auto;
		height: calc(7*calc(1.5rem + 10.2px));
	}
	nav a, #act {
		display: block;
		border: 0;
	}
	nav a:not(:first-child), #act:not(:first-child) {
		border-left: 0;
	}
	nav a, #act, label {
		padding: 5px;
		line-height: 1.5;
	}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console