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.

	span.s1 blog 
	span.s2 card
		h1 Why you Need More Magnesium in Your Daily Diet
			h2 Igor MARTY
		p Magnesium is one of the six essential macro-minerals that is required by the body for energy production and synthesis of protein and enzymes. It contributes to the development of bones and most importantly it is responsible for synthesis of your DNA and RNA. A new report that has appeared in theBritish Journal of Cancer, gives you another reason to add more magnesium to your diet...
	h5 12
              @import url(https://fonts.googleapis.com/css?family=Roboto)

/*Just the background stuff*/
	position : absolute
	top : 0
	font-size : 15rem
	font-weight : 800
	text-transform : uppercase
	color : #3C4447

	font-weight : 800
	position : absolute
	bottom : 0
	right : 0
	font-size : 15rem
	text-transform : uppercase
	color : #3C4447

/*My hum... body.. yeah..*/
	background-color: #353B3F
	font-family: 'Roboto', sans-serif

/* The card */
	position : relative
	height: 450px
	width: 900px
	margin : 200px auto
	background-color : #FFF
	-webkit-box-shadow: 10px 10px 93px 0px rgba(0,0,0,0.75)
	-moz-box-shadow: 10px 10px 93px 0px rgba(0,0,0,0.75)
	box-shadow: 10px 10px 93px 0px rgba(0,0,0,0.75)

/* Image on the left side */
	float : left
	position : relative 
	left : 30px
	top : -30px
	height : 320px
	width : 530px
	-webkit-box-shadow: 10px 10px 60px 0px rgba(0,0,0,0.75)
	-moz-box-shadow: 10px 10px 60px 0px rgba(0,0,0,0.75)
	box-shadow: 10px 10px 60px 0px rgba(0,0,0,0.75)
	overflow: hidden
/*object-fit: cover;*/
/*object-position: center;*/

	position: absolute
	left: 50%
	top: 50%
	height: auto
	width: 100%
	-webkit-transform: translate(-50%,-50%)
	-ms-transform: translate(-50%,-50%)
	transform: translate(-50%,-50%)

/* Right side of the card */
	margin-left : 590px
	margin-right : 20px

	padding-top : 15px
	font-size : 1.3rem
	color : #4B4B4B

	background-color : #9ECAFF
	height : 30px
	width : 110px
	border-radius : 20px

	padding-top : 5px
	margin-left : 10px
	float : left
	height : 20px
	width : 20px
	border-radius : 50%

	padding-top : 8px
	margin-right : 6px
	text-align : right
	font-size : 0.8rem
	color :white

	margin-top : 10px
	border : 1px solid #C3C3C3

	text-align: justify
	padding-top : 10px
	font-size : 0.95rem
	line-height: 150%
	color : #4B4B4B

/* DATE of release*/
	position : absolute
	left : 30px
	bottom : -120px
	font-size : 6rem
	color : #C3C3C3

	position : absolute
	left : 30px
	bottom : -55px
	font-size : 2rem
	color : #C3C3C3

/* Those futur buttons */
	margin-left : 250px

	display: inline
	list-style: none
	padding-right: 40px
	color : #7B7B7B

/* Floating action button */
	position : absolute
	right : 50px
	bottom : -40px
	box-sizing: border-box
	padding-top: 18px
	background-color : #1875D0
	width : 80px
	height : 80px
	color : white
	text-align : center
	border-radius : 50%
	-webkit-box-shadow: 10px 10px 50px 0px rgba(0,0,0,0.75)
	-moz-box-shadow: 10px 10px 50px 0px rgba(0,0,0,0.75)
	box-shadow: 10px 10px 50px 0px rgba(0,0,0,0.75)

              /* Not today Js, not today... */
🕑 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 ..................