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

              
                <div class="container-ticket">
	<div class="ticket">
		<div class="head-ticket">
			<p class="x-bold">E.Leclerc</p>
			<p class="bold">33500 LIBOURNE</p>
			<p class="bold">Tél: 05 57 55 08 08</p>
			<br>
			<p class="bold">VOUS REMERCIE DE VOTRE CONFIANCE</p>
			<p>Caisse 015-2019 15 aôut 2017 18:24</p>
			<p>Ticket 15/08/170 0QRL 02000</p>
			<div class="code-barre">
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
				<span></span>
			</div>
		</div>
		<div class="body-ticket">
			<div class="produits">
				<div class="col2">
					<p>YAO NAT LOU PERAC LAIT BREBIS F</p>
					<p class="prix">1.63</p>
				</div>
				<div class="hr-sm"></div>
				<div class="col2">
					<p>Total 1 article</p>
					<p class="prix">1.63</p>
				</div>
				<p>Soit en franc : 10.69</p>
				<p>(1 euro = 6,55957 francs)</p>
				<br>
				<div class="col2">
					<p>Bon achat carte</p>
					<p class="prix">1.63</p>
				</div>
				<div class="col2">
					<p>Rendu</p>
					<p class="prix">0.00</p>
				</div>
			</div>
			<div class="hr-lg"></div>
			<div class="carte">
				<p class="title-carte">Avec la carte E.Leclerc</p>
				<br>
				<div class="col2">
					<p>CUMUL DISPONIBLE AU 15/08/17 :</p>
					<p class="prix">31.63€</p>
				</div>
				<br>
				<p>Ce CUMUL DISPONIBLE est à valoir sur vos prochains achats dans tous les magasins E.LECLERC participant à l'opération et sur présentation de votre carte E.LECLERC.</p>
				<br>
				<p>Modalités, durée de validité à l'accueil</p>
			</div>
			<div class="hr-lg"></div>
		</div>
		<div class="footer-ticket">
			<p class="title-footer">Merci de votre<br>visite et à bientôt</p>
		</div>
	</div>
</div>
              
            
!

CSS

              
                @import "compass/css3";

$padding: 0px 17px;
::selection{
	background: #333;
	color: #ffffff;
}
body{
	margin: 0;
	font-size: 12px;
	position: relative;
	font-family: 'courier';
}
*{
	margin: 0;
}
.serif{
	font-family: serif;
}
.sans-serif{
	font-family: 'sans-serif';
}
.bold{
	font-weight: 700;
}
.x-bold{
	font-weight: 900;
	text-shadow: 0px 0px 1px #000;
}
.hr{
	border-bottom: 1.5px dashed #333;
	margin: 10px 0;
}
.hr-sm{
	@extend .hr;
	width: 30%;
	float: right;
}
.hr-lg{
	@extend .hr;
	width: 100%;
}
.col2{
	display: flex;
	width: 100%;
	justify-content: space-between;
}

.container-ticket{
	background: #e6e6e6;
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	padding: 50px 0;
	box-sizing: border-box;
	.ticket{
		cursor: default;
		position: relative;
		width: 300px;
		padding: 10px 20px;
		background: #fff url(https://static.licdn.com/scds/common/u/images/apps/payments/textures/texture_paper_304x128_v1.png);
		box-shadow: 0px 5px 10px rgba(0,0,0,.1);
		.head-ticket{
			text-align: center;
			padding: $padding;
			p{
				font-size: 14px;
				&:nth-child(1){
					font-size: 18px;
				}
				&:nth-child(6), &:nth-child(7){
					font-size: 12px;
					text-align: left;
				}
			}
			.code-barre{
				height: 50px;
				display: flex;
				justify-content: space-between;
				margin-left: -17px;
				margin-right: -17px;
				margin-top: 5px;
				span{
					height: 100%;
					width: 10px;
					display: inline-block;
					background: #333333;
					@for $i from 1 through 50{
						&:nth-child(#{$i}){
							width: random(7) + px;
							margin-right: random(2) + px;
						}
					}
				}
			}
		}
		.body-ticket{
			padding: $padding;
			.produits{
				margin: 30px 0;
			}
			.carte{
				text-align: justify;
				text-align-last: center;
				.title-carte{
					font-size: 15px;
					font-weight: 600;
					letter-spacing: -2px;
				}
			}
		}
		.footer-ticket{
			padding: $padding;
			.title-footer{
				font-size: 16px;
				font-weight: 900;
				text-shadow: 0px 1px 0px rgba(0,0,0,.5);
				text-align: center;
				letter-spacing: 2px;
			}
		}
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console