Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Auto Save

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <header></header>
	<main>
		<section id="blogartikel">
			<article>
				<p>Der Erfolg des Smartphones hat dazu beigetragen, dass das digitale Fotografieren noch beliebter ist. Heute hat mit dem Smartphone fast jeder seine digitale Kamera immer bei sich und kann nach Herzenslust fotografieren. Von den zahlreichen Fotografien sollen besonders gelungene Exemplare oft als Abzüge auf Papier erstellte werden. Neben professionellen Fotolaboren können Sie hierfür günstige Fotodrucker nutzen. Es lassen sich mit diesen Geräten zu erstaunlich günstigem Preis Fotos in nahezu perfekter Qualität drucken. Was Sie rund um das hochwertige und preiswerte Drucken mit dem eigenen Fotodrucker wissen müssen, erfahren Sie im Folgenden.</p>
				<h3>Welcher Fotodrucker ist zu wählen?</h3>
				<p>Speziell für den Fotodruck ist eine ganze Reihe an spezialisierten Fotodruckern am Markt erhältlich. Diese Geräte sind für das preiswerte Drucken von Abzügen optimiert und versiegeln beispielsweise fertige Ausdrucke mit einer speziellen Schutzschicht für eine länger Haltbarkeit. Allerdings schränken Sie den Funktionsumfang für das Drucken von Dokumenten stark ein. Besonders flexibel sind Sie, wenn Sie sich ein Multifunktionsgerät anschaffen, das drucken, scannen und kopieren kann. Diese Multifunktionsdrucker sind nicht selten für unter 100 Euro zu haben und drucken auch Fotos auf Spezialpapier in nahezu perfekter Qualität. Zusätzlich könne Sie mit den Geräten alle weiteren anfallenden Druck- und Kopierarbeiten zu Hause erledigen.</p>
				<h3>Wichtige Eigenschaften für den Fotodruck</h3>
				<p>Entscheidend für die Qualität der Ausdrucke ist die Auflösung des Druckers. Je höher die Auflösung, desto klarer und brillanter die Abzüge. Sehr gute Ergebnisse erzielen Sie mit Auflösungen zwischen 5.000 x 1.000 dpi und 9.600 x 2.400 dpi (dots per inch). Ein weiteres Kriterium für die Auswahl des Drucker ist die maximale Größe der Abzüge. Normale Geräte drucken in der Regel bis zu einer Größe von DIN A4. Möchten Sie noch größere Fotos drucken wie DIN A3, schaffen Sie sich direkt einen Drucker an, der dieses Format beherrscht. Ihr Drucker sollte auch das randlose Drucken beherrschen, mit dem Sie das Papier optimal ausnutzen. Praktisch sind mobile Druckfunktionen über WLAN, die es ermöglichen, digitale Fotos direkt drahtlos vom eigenen Smartphone oder Tablet aus zu drucken.</p>
				<h3>Auf die Qualität und den Preis des Verbrauchsmaterials achten</h3>
				<p>Einen erheblichen Kostenfaktor beim Drucken von Fotoabzügen stellt das Verbrauchsmaterial dar. Gerade günstige Fotodrucker erzeugen durch teure Tinte hohe Druckkosten. Die Kosten für die Tinte lassen sich senken, indem Sie preisgünstige Tinte von alternativen Herstellern nutzen. Für eine perfekte Qualität ist zudem hochwertiges Fotopapier zu verwenden. Wählen Sie am besten ein High Glossy Papier mit einer Glanzbeschichtung. So kommen Ihre Fotos besonders gut zur Geltung. Diese Papiere sind in gängigen Fotoformaten wie 10 x 15 Zentimeter oder 13 x 18 Zentimeter sowie in DIN A4 und anderen Größen verfügbar. Haben Sie ein preisgünstiges Papier gefunden, das Ihre Qualitätsanforderungen erfüllt, können Sie sich gerne einen größeren Vorrat anlegen.</p>
			</article>
			<aside>
				<div>
					<div class="author-box">
	                    <img src="https://www.bilder-upload.eu/upload/cb736c-1540029615.jpg" alt="Lari Musterfrau" width="104" height="104" class="Avatar - Lari">
	                    <h4 class="author-name"><b>Lari Musterfrau</b><br>Marketing Manager</h4>
						<p class="bio">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
					</div>
				</div>

				<div>
					<div class="newsletter-box">
	          			<h4>Jetzt unseren Newsletter abonnieren!</h4>
						<p class="bio">Mit unserem Newsletter sind Sie immer topaktuell über alle Neuheiten rund um das Thema Onlinemarketing informiert.</p>
					</div>
				</div>
			</aside>
		</section>
	</main>
	<footer></footer>
              
            
!

CSS

              
                :root { 
	--dark-grey: #555;
	--light-grey: #999;
}

*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
}

html {
	background: #fff;
	margin: 2em 0;
}

a {
	text-decoration: none;
	color: #292b2c;
}

ol,li {
	list-style: none;
	padding: 0;
	margin: 0;
}

#blogartikel {
	max-width: 81.250em;
	margin: 3em auto 0 auto;
	display: grid;
	grid-template-columns: 4fr 2fr;
    grid-gap: 1em;
}

aside {
	margin-right: 2em;
}

@media screen and (max-width: 56.250em) { 

 	#blogartikel {
		display: block;
		margin-right: 2em;
	}
 
}

#blogartikel p {
	line-height: 1.8;
	color: #292b2c;
}

article {
    margin-right: 7em;
    font-size: 18px;
    margin-left: 2em;
}

@media screen and (max-width: 56.250em) { 

	article {
	    margin-right: 0em;
	}
 
}

aside {
    margin-top: 2.4em;
}

h3 {
	margin-top: 1.5em;
	margin-bottom: 1em;
}

h4 {
	font-size: 18px;
    line-height: 1.6em;
}

h4 b {
    font-weight: bold;
}

p small {
    color: #B3B3B3;
}

.bio {
    color: #7F7F7F;
    line-height: 1.5em !important;
    margin-bottom: 0;
    font-size: 1em;
}

div.author-box {
	margin-left: 30px;
    position: relative;
    background: #F7F7F7;
    padding: 25px 35px;
}

div.newsletter-box {
	margin-left: 30px;
    position: relative;
    background: #F7F7F7;
    padding: 25px 35px;
    margin-top: 2em;
}

div.newsletter-box h4 {
    margin-bottom: 0.5em;
}

@media screen and (max-width: 56.250em) { 

	aside {
	    margin-top: 3.4em;
	}

	div.newsletter-box {
	    margin-left: 5em;
	    margin-top: 2em;
	}

	div.author-box {
		margin-left: 5em;
	}
 
}

div.author-box img {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-43%, -29%);
}

h4.author-name {
    font-weight: normal;
    padding-left: 45px;
    margin-bottom: 20px;
}
              
            
!

JS

              
                
              
            
!
999px
Keep friends close and formatters closer.

Console