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


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.


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.


                <!DOCTYPE html>
<html lang="hr">

<meta charset="utf-8">
<title>Primjer responzivne Web-stranice</title>
<meta name="description" content="Primjer responzivne Web-stranice -
 An example of responsive Web page">
<meta name="keywords" content="HTML, CSS, JavaScript, responsive">
<meta name="author" content="KP.">
<meta name="generator" content="handmade with the Vim editor">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">

<meta name="viewport" content="width=device-width, initial-scale=1">

html {
    color: DarkBlue;
    font-size: large;
    line-height: 1.5em;
    font-family: monospace;
/* zadani stil */
#spremnik {
  width: 600px;
  margin: 0 auto;
/* zaslon sirine 600 tocaka */
@media screen and (max-width: 600px) {
  #spremnik {
    width: 100%;

<div id="spremnik">
<p><strong>Postavljanje upita o prezentacijskome mediju u CSS-kodu responzivne Web-stranice</strong></p>
<p>Prilagodbu prikaza (responzivnost) Web-stranice Web-pregledniku nekog uređaja moguće je postići s odgovarajućim postavkama u njezinom HTML-kodu i CSS-upitima o prezentacijskome mediju.</p>

document.write('Širina u točkama*: <strong>' + window.innerWidth + '</strong>');
<p><small>* Nakon promjene širine zaslona potrebno je radi izračuna širine u točkama ponovo učitati stranicu (<em>Refresh</em>).</small></p>